indrimuska / angular-moment-picker

Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js.
http://indrimuska.github.io/angular-moment-picker/
MIT License
527 stars 229 forks source link

Duplicate hours when there is DST #298

Open hmarrufo opened 4 years ago

hmarrufo commented 4 years ago

(I'm on timezone (UTC+01:00) - Brussels, Copenhagen, Madrid, Paris)

When selecting hours on the day DST occurs (in my case October 27th 2019 and March 29th 2020) an hour is duplicated, this is due to the hour advance/delay happens at 02:00 (AM) thus I end up seeing the hours like this: 27 ocktober 2019 and: 29 marts 2020

The main problem is both repeated hours select the same hour (i mean it's not that the first appearance of 02:00 sets 2am and the second one sets 3am)

Is there any workaround for this? I see this only happening when the pc handling the picker is in the timezone I specified before