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
In an attempt to get adding and subtracting around DST boundaries to work, I attempted to upgrade to the latest develop branch but ran into another issue. (#66 (comment))
varisoString='2013-01-01T12:05:33.123Z';isoString===moment.tz(isoString,'America/Los_Angeles').toISOString();// -> false // expected `true` like on 2.5.1/0.0.3moment.tz(isoString,'America/Los_Angeles').toISOString();// -> "2013-01-01T15:05:33.123Z" // where did the extra 3 hours come from?
The text was updated successfully, but these errors were encountered:
maxkostow
changed the title
moment.tz not compatible with ISO8601 strings?
moment.tz not compatible with ISO8601 tz strings?
Apr 8, 2014
Yeah, the moment.tz(..., zone) constructor is kind of naive right now.
I have some failing tests at #27 that I have tried (and failed) to get passing a couple times with no luck. I think that the changes in #82 would make #27 easier.
In the mean time, you can use the following syntax instead, which should be more accurate.
In an attempt to get adding and subtracting around DST boundaries to work, I attempted to upgrade to the latest develop branch but ran into another issue. (#66 (comment))
moment: https://github.com/moment/moment/blob/0b2dfcbe949f6ed4a7a17168dadcc560ffc54066/moment.js
moment-timezone: https://github.com/moment/moment-timezone/blob/20dee3d34203da99b4189670d8d34e457877ea81/moment-timezone.js
The text was updated successfully, but these errors were encountered: