Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Year setter should keep time when DST changes #3036
moment.tz("2016-03-28T00:00:00","Europe/London").year(2015).format() // "2015-03-27T23:00:00+00:00"
It should have been
While this only manifests when using moment-timezone, the problem is in moment itself. The
Fixed this, added some unit tests, and added similar tests around other units and related scenarios.