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
TL;DR clone works incorrectly for an object pointing at the midnight DST start
There are several timezones that have DST start/end on midnight, e.g. Havana turns the clock 1 hour forward on Mar 8 00:00, which makes this time technically non-existent. When moving to this date with add(), moment is smart enough to understand it should be Mar 8 start. But if you clone the object, this info is lost and resulting object is not equal to it's source.
TL;DR
clone
works incorrectly for an object pointing at the midnight DST startThere are several timezones that have DST start/end on midnight, e.g. Havana turns the clock 1 hour forward on Mar 8 00:00, which makes this time technically non-existent. When moving to this date with
add()
, moment is smart enough to understand it should be Mar 8 start. But if you clone the object, this info is lost and resulting object is not equal to it's source.The text was updated successfully, but these errors were encountered: