I have recently started working with AngularJS and I am trying to extract the weekday from a timestamp obtained from a JSON file located here.
The timestamp can be found in a variable named "dt"
.
Below is the code snippet where I iterate through the JSON file using AngularJS :
<div class="row" ng-repeat="t in weather.list">
<div class="date">
{{t.dt*1000 | date:'EEE'}}
</div>
</div>
The expected output should display the current weekday and the following ten weekdays, like so:
Sun
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Mon
Tue
However, the actual result looks like this:
Sun
Sun
Sun
Mon
Mon
Mon
Mon
Mon
Mon
Mon
Here are the dt
values from the array:
1463335200
1463346000
1463356800
1463367600
1463378400
1463389200
1463400000
1463410800
1463421600
1463432400
Any ideas on how to resolve this issue?