diff --git a/changelog.md b/changelog.md index b3693fc4..a403f9da 100644 --- a/changelog.md +++ b/changelog.md @@ -1,11 +1,11 @@ -### `0.5.29` _2020-02-21_ +### `0.5.28` _2020-02-21_ 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 -### `0.5.28` _2019-10-14_ +### `0.5.27` _2019-10-14_ * Updated data to IANA TZDB `2019c` ### `0.5.26` _2019-06-06_ diff --git a/moment-timezone.js b/moment-timezone.js index b625ce5f..7a535ff8 100644 --- a/moment-timezone.js +++ b/moment-timezone.js @@ -19,7 +19,7 @@ "use strict"; // Resolves es6 module loading issue - if (moment.version === undefined) { + if (moment.version === undefined && moment.default) { moment = moment.default; }