I want to add timezone offset in utc datetime.Here is my code:
<td>{{amazon.requested_at | date: 'medium' : 'UTC' : '+0430'}}</td>
My problem is time is not added to actual time. I want to say that '+0430' is not working
I want to add timezone offset in utc datetime.Here is my code:
<td>{{amazon.requested_at | date: 'medium' : 'UTC' : '+0430'}}</td>
My problem is time is not added to actual time. I want to say that '+0430' is not working
You need at least AngularJS 1.3.0 because the timezone argument was added from 1.3.0 (https://code.angularjs.org/1.3.0/docs/api/ng/filter/date) and the code should be:
{{amazon.requested_at | date: 'medium' : '+0430'}}
The Solution is:
<td>{{amazon.requested_at | date: 'medium' : '+0430' : 'UTC'}}</td>
UTC is useless and it will be skipped, check: code.angularjs.org/1.3.0/docs/api/ng/filter/date