How to get Drupal generated timestamps to display correctly in AngularJS

A Blog Post by

It appears that Drupal doesn't use the microtime() function to generate it's timstamp, and that causes AngularJS to wrongly interpret the times.

{{node.created | date:'dd/MM/yyyy'}}

A quick fix is to add '000' to the end of the timestamp.

{{node.created + '000' | date:'dd/MM/yyyy'}}
Created: Tue, 24/07/2012 - 14:44