I dumped the stringified JSON representation of zoneInfo.utcStandardOffsetSecondsByTimeZoneId into a file with the old
implementation, and again with the new based on moment-timezone.
There is no diff between the two JSON files. Below is the example code used to generate them:
I dumped the stringified JSON representation of
zoneInfo.utcStandardOffsetSecondsByTimeZoneId
into a file with the old implementation, and again with the new based on moment-timezone.There is no diff between the two JSON files. Below is the example code used to generate them:
There was no specific tests of this module, but the build still works.
I wanted to use https://github.com/prantlf/timezone-support instead of moment-timezone, but due to https://github.com/prantlf/timezone-support/issues/33 and the fact that they do not have a way for us to tell if a date is DST, I had to go with moment.