The timepicker is not handling 24hr time assignment correctly. For e.g.
<timepicker ng-model="$time" hour-step="1" minute-step="1" show-meridian="true"></timepicker>
When I do: $scope.$time = "2012-04-23T18:25:43Z"
, the timepicker is updated to 06:25 AM
. It should be 06:25 PM
.
Even if I set show-meridian="false"
, it's still showing 06:25
.
The "Z" in the ISO 8601 date format stands for UTC. Therefore, depending on the current local timezone offset, your results may vary.
Check the snippet below to see the representation of the UTC value versus the locale-specific timepicker value that accounts for your timezone offset: