I am struggling with displaying the countdown in local time using the Angular Timer directive. My server app (Laravel) provides time in UTC (ISO 8601).
For instance:
2016-08-06T09:11:01Z
This creates a 7-hour discrepancy in my timezone.
The angular relative date directive can accurately return localized time:
{{feed.date | relativeDate}}
Output: 2 mins ago
However, I am unsure how to convert this to a timestamp that can be utilized for the timer to display in local time. This presents an issue when trying to show the correct end-time in my timezone.
<timer end-time="feed.time*1000">@{{hhours}}h</timer>
feed.time
appears as 1470448297