You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the datetime-picker is instantiated with ng-model-options={ timezone: 'UTC' } and a date is passed, the date will display correctly in the input field but the wrong date square may be highlighted in the calendar picker depending on the time and the local time zone.
E.g. my local time zone is +11:00 at the moment, if I create the datetime-picker and set the model to a time earlier than 11am, the calendar picker will select the previous day.
I've created a plunker that demonstrates this here: http://plnkr.co/edit/t4LzL2LiEkXwqBWfpVOT?p=preview
The initial date set to the model is Nov 17th 2am, equivalent to (here): Nov 17 2017 13:00:00 GMT+1100
The text was updated successfully, but these errors were encountered:
If the datetime-picker is instantiated with
ng-model-options={ timezone: 'UTC' }
and a date is passed, the date will display correctly in the input field but the wrong date square may be highlighted in the calendar picker depending on the time and the local time zone.E.g. my local time zone is +11:00 at the moment, if I create the datetime-picker and set the model to a time earlier than 11am, the calendar picker will select the previous day.
I've created a plunker that demonstrates this here: http://plnkr.co/edit/t4LzL2LiEkXwqBWfpVOT?p=preview
The initial date set to the model is Nov 17th 2am, equivalent to (here): Nov 17 2017 13:00:00 GMT+1100
The text was updated successfully, but these errors were encountered: