use timezone {{ item.date | date : format : timezone}} like utc
On Monday, 7 January 2013 02:54:34 UTC+5:30, Josh David Miller wrote:
>
> Hello!
>
> When using the date filter, the date string and object I provide seem to
> be treated by default as UTC, so when I use the filter, it localizes the
> date, which becomes eight hours off (PST). If I provide an 'T' offset to
> the filter, all works fine.
>
> Here's a Plunker: http://plnkr.co/edit/Jhwnkj?p=preview.
>
> What am I doing incorrectly?
>
> Josh
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.