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
Hmm, not sure if converting all dates to UTC is always the desired option? If you would, for example, add a time to that date object afterwards, the generated Moment object would have a wrong time.
Hi,
when Daylight Saving Time begins there is a gap in local time because the clocks are adjusted. For instance, in Brazil the day 15/10/2017 is the date when the DST starts. Some browser like Safari when the date is created in line https://github.com/mydea/PikadayResponsive/blob/master/src/pikaday-responsive.js#L148:
obj.date = moment(val, settings.format);
if the the val = '15/10/2017' the date will be set as 14/10/2017 (in Brazil).
In my tests the line should be:
obj.date = moment(val, settings.format).utc();
The UTC time has no DST so the date will not be changed
The text was updated successfully, but these errors were encountered: