title: AngularJS PHP MYSQL Incorrect date displaying
body: <p>I am inserting timestamp in mysql database using doctrine ORM (string Annotation) and ZF2, </p>
  
  <p>Creating timestamp using following</p>
  
  <pre><code>$date = new \DateTime("now");
  $ts = $date-&gt;getTimestamp(); // 1374229715
  </code></pre>
  
  <p>MySQL varchar fields safely have 1374229715 timestamp in its varchar typed field. </p>
  
  <p>When I check this timestamp(1374229715) using <a href="http://timestamptodate.com/?timestamp=1374229715" rel="nofollow">http://timestamptodate.com/?timestamp=1374229715</a>
  it return 19 Jul 2013 (which is correct). </p>
  
  <p>But when I return this using angularJs. </p>
  
  <pre><code>{{item.created | date:'medium'}}
  </code></pre>
  
  <p>it displays </p>
  
  <pre><code>Jan 16, 1970 9:43:49 PM
  </code></pre>
  
  <p>which is incorrect. </p>
  
  <p>Any idea why angularJs is doing this and Am I doing something wrong here?</p>