javascript - Angularstrap Timepicker's millisecond timeFormat is one hour off -
i using timepicker directive of angularstrap (mgcrea.github.io/angular-strap/#timepickers) number timeformat (milliseconds). when passing initial ng-model-value in, representation of value 1 hr off in opinion. if pass in 0, time 01:00. in sentiment should of course of study 00:00.
this config:
angular.extend($timepickerprovider.defaults, { timeformat: "hh:mm", timetype: "number", minutestep: 10, container: "body" });
see plunker: plnkr.co/edit/b0lwqbhl7aeynyere8eg
am missing something? indeed right behaviour?
turns out indeed right behaviour. forgetting numeric value passed in finish date. value 0 1970-01-01 00:00:00 in utc , of course of study different in timezone.
javascript angularjs timepicker angular-strap
No comments:
Post a Comment