- Updated data to IANA TZDB
2024b
. This only affects historical timestamps; no future timestamps have changed.
- Updated data to IANA TZDB
2024a
.
- Updated data to IANA TZDB
2023d
. - Fixed
.valueOf()
to returnNaN
for invalid zoned objects (matching defaultmoment
) #1082. - Performance improvements:
- Use binary search when looking up zone information #720.
- Avoid redundant checks in
tz.guess()
. - Avoid redundant
getZone()
calls in.tz()
.
- Updated data to IANA TZDB
2023c
- Updated data to IANA TZDB
2023b
- Updated
moment
npm dependency to2.29.4
to remove automated warnings about insecure dependencies. Moment Timezone still works with core Moment2.9.0
and higher. - Updated all dev dependencies including UglifyJS, which produces the minified builds.
- Added deprecation warning to the pre-built
moment-timezone-with-data-2012-2022
bundles #1035. Use the rollingmoment-timezone-with-data-10-year-range
files instead.
- Updated data to IANA TZDB
2022g
- Updated data to IANA TZDB
2022f
- Updated data to IANA TZDB
2022e
- Added
moment.tz.dataVersion
property to TypeScript definitions #930 - Removed temporary
.tar.gz
files from npm releases #1000
- Re-publish npm package, because of extra folder present in 0.5.36, check #999
- IANA TZDB 2022c
- improvements/fixes to data pipeline
- Fix command injection in data pipeline https://github.com/moment/moment-timezone/security/advisories/GHSA-56x4-j7p9-fcf9
- Fix cleartext transmission of sensitive information https://github.com/moment/moment-timezone/security/advisories/GHSA-v78c-4p63-2j6c
Thanks to the OpenSSF Alpha-Omega project for reporting these!
- Updated data to IANA TZDB
2021e
- Updated data to IANA TZDB
2021a
- Updated data to IANA TZDB
2020d
- Fixed Travis builds for Node.js 4 and 6
- Updated data to IANA TZDB
2020a
- Fixed typescript definitions
NOTE: You might need to un-install @types/moment-timezone. Check #858 for more info
- Merged fix of es6 module loading issue https://github.com/moment/moment-timezone/commit/1fd42349189b24e15c60f162dc8c40b42db79dfe
- Merged PR with typescript declarations https://github.com/moment/moment-timezone/commit/ed529ea6fbcc70315c0c3f6d7c7cb70eadf56b03
- Merged fixes to changelog https://github.com/moment/moment-timezone/commit/adb7d7b43c7328d814311ac1355bfeef88eab6e8
Merged pull request #410 from @adgrace:
- Added a method
moment.tz.zonesForCountry(country_code)
which returns all timezones for the country - Added a method
moment.tz(timezone_id).countries()
to get countries for some time zone - Added a method
moment.tz.countries()
to get all country codes - And as you know
moment.tz.zones()
already exists
- Updated data to IANA TZDB
2019c
- Updated data to IANA TZDB
2019b
- Fix: stabilize Array.sort #762
- Fix
moment.tz.dataVersion
to return2019a
#742 - Update path in bower.json
- Updated data to IANA TZDB
2019a
#737 - Start shipping both a 1970-1930 file and a rolling 10-year file #614 #697
- Fixed bug where
_z
time zone name was not cleared with.local()
or.utcOffset(offset)
#738
- Fix minor issue with tz guessing in Russia #691
- Updated data to IANA TZDB
2018g
#689 - Fix issue with missing LMT entries for some zones, and fix data builds on Linux and Windows #308
- Bugfix: revert breaking change introduced in 0.5.18
- Bugfix: accidentally commented code
- Revert: moved moment to peerDependencies
- Return error when timezone name is not a string.
- Moved moment to peerDependencies #628
- Prefer nodejs to amd declaration #573
- Updated data to IANA TZDB
2018d
. #616
- Fixed Etc/UTC timezone recognition, updated tests. #599
- Updated minified files to contain IANA TZDB
2018d
data
- Updated data to IANA TZDB
2018d
. #596
- Ensure Intl response is valid when guessing time zone. #553
- Updated data to IANA TZDB
2017c
. #552 - Convert to tz keeping wall time #505
- Make all time zones available for guessing. #483
- zone.offset has been deprecated in favor of zone.utcOffset #398
- Check for timestamp formats when parsing #348
- Bumped version to address Bower cache issues with last release. #474
- (No actual changes otherwise)
- Updated data to IANA TZDB
2017b
. #422 - Build the truncated data file as 2012-2022 (+/- 5 years).
- Remove log statement when data is loaded twice. #352
- Updated data to IANA TZDB
2016j
. #422
- Fixed the output of
moment.tz.version
. #413
- Updated data to IANA TZDB
2016i
. #411
- Updated data to IANA TZDB
2016h
. #403
- Updated data to IANA TZDB
2016g
. #394
- Updated data to IANA TZDB
2016f
. #360
- Updated data to IANA TZDB
2016d
. #336 - Ignore the results from
Intl.DateTimeFormat().resolvedOptions().timeZone
if it is undefined. #322
- Updated data to IANA TZDB
2016c
. #321
- Updated data to IANA TZDB
2016b
. #315
- Updated data to IANA TZDB
2016a
. #299 - Fixed bug when
Date#toTimeString
did not return a known format. #302 #303 - Added lookup on
Intl.DateTimeFormat().resolvedOptions().timeZone
tomoment.tz.guess()
. #304 #291
- Added support for guessing the user's timezone via
moment.tz.guess()
. #285 - Fixed UMD export issue when there was an html element with
id=exports
. #275 - Removed jspm specific dependencies from
package.json
. #284
- Updated data to IANA TZDB
2015e
. #253 - Updated data to IANA TZDB
2015f
. #253 - Updated data to IANA TZDB
2015g
. #255 - Added jspm dependencies for moment. #234
- Included builds directory in npm. #237
- Removed version field from bower.json. #230
- Updated data to IANA TZDB
2015b
. #201 - Updated data to IANA TZDB
2015c
. #214 - Updated data to IANA TZDB
2015d
. #214 - Updated zone getter to allow lazy unpacking to improve initial page load times. #216
- Added a
package.json
jspm:main
entry point. #194 - Added
composer.json
. #222 - Added an error message when trying to load moment-timezone twice. #212
- Updated data to IANA TZDB
2015a
. #183
- Breaking: Added country data to the
meta/*.json
files. Restructured the data to support multiple countries per zone. #162 - Added the ability to set a default timezone for all new moments. #152
- Fixed a bug when passing a moment with an offset to
moment.tz
. #169 - Fixed a deprecation in moment core, changing
moment#zone
tomoment#utcOffset
. #168
- Updated data to IANA TZDB
2014j
. #151
- Updated data to IANA TZDB
2014i
. #142
- Updated data to IANA TZDB
2014h
. #141
- Updated data to IANA TZDB
2014g
. #126 - Added a warning when using
moment-timezone
withmoment<2.6.0
.
- Fixed support for
moment@2.8.1+
.
- Added the ability to configure whether ambiguous or invalid input is rolled forward or backward. #101
- Added
moment>=2.6.0
as a dependency inbower.json
. #107 - Fixed getting the name of a zone that was added as a linked zone. #104
- Added an error message when a zone was not loaded. #106
- Breaking: Changed data format from Zones+Rules to just Zones. #82
- Breaking: Removed
moment.tz.{addRule,addZone,zoneExists,zones}
as they are no longer relevant with the new data format. - Made library 20x faster. JSPerf results
- Completely rewrote internals to support new data format.
- Updated the data collection process to get data directly from http://www.iana.org/time-zones.
- Updated data to IANA TZDB
2014e
. - Updated
bower.json
to use a browser specificmain:
entry point. - Added built files with included data.
- Added support for accurately parsing input around DST changes. #93
- Added comprehensive documentation at momentjs.com/timezone/docs/.
- Added
moment.tz.link
for linking two identical zones. - Added
moment.tz.zone
for getting a loaded zone. - Added
moment.tz.load
for loading a bundled version of data from the IANA TZDB. - Added
moment.tz.names
for getting the names of all the loaded timezones. - Added
moment.tz.unpack
andmoment.tz.unpackBase60
for unpacking data. - Added
moment-timezone-utils.js
for working with the packed and unpacked data. - Fixed major memory leak. #79
- Fixed global export to allow use in web workers. #78
- Fixed global export in browser environments that define
window.module
. #76
- Fixed issue with preventing loading moment-timezone more than once. #75
- Improved performance with memoization. #39
- Published only necessary files to npm. #46
- Added better handling of timezones around DST. #53 #61 #70
- Added Browserify support. #41
- Added
moment.tz.zoneExists
#73 - Fixed cloning moments with a timezone. #71
- Prevent loading moment-timezone more than once. #74
- Added Bower support.
- Added support for newer versions of moment.
- Added support for constructing a moment with a string and zone.
- Added more links and timezone names in moment-timezone.json
- Initial version.