Skip to content

Commit c0d147e

Browse files
committed
fix: Upgrade the time zone database to the version 2019a.
1 parent e45a193 commit c0d147e

7 files changed

Lines changed: 1145 additions & 423 deletions

File tree

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
Lightweight time zone listing and date converting. Intended for adding time zone support to high-level date libraries, but also for direct application usage.
1313

1414
* Tiny code base - 4.6 KB minified, 1.7 KB gzipped. Do not pack unnecessary weight in your application.
15-
* Packed time zone data - 923 KB minified, 33.3 KB gzipped. Single time zones are unpacked on demand.
16-
* Smaller bundles with limited data - 1900-2050 (204 kB minified, 25.2 kB gzipped), 1970-2038 (204 kB minified, 25.2 kB gzipped) and 2012-2022 (31.2 KB minified, 8.2 kB gzipped).
17-
* Generated from the official time zone database version 2018g. Canonical time zone names, aliases, UTC offsets, and daylight-saving time changes.
15+
* Packed time zone data - 924 KB minified, 33.6 KB gzipped. Single time zones are unpacked on demand.
16+
* Smaller bundles of code with limited data - 1900-2050 (206 kB minified, 25.4 kB gzipped), 1970-2038 (141 kB minified, 15.8 kB gzipped) and 2012-2022 (31.3 KB minified, 8.25 kB gzipped).
17+
* Generated from the official time zone database version 2019a. Canonical time zone names, aliases, UTC offsets, and daylight-saving time changes.
1818
* Minimal interface for time zone lookup and conversions. Parsing, formatting and manipulating dates is usually the task for a higher-level date library.
1919

20-
**Attention**: export identifiers in vanilla browser modules changed in the version 2.0.0. See the [migration guide] for more information.
20+
**Attention**: exported identifiers in vanilla browser modules changed in the version 2.0.0. See the [migration guide] for more information.
2121

2222
### Table of Contents
2323

@@ -85,6 +85,8 @@ In lieu of a formal styleguide, take care to maintain the existing coding style.
8585

8686
## Release History
8787

88+
* 2018-06-11 v2.0.2 Upgrade the time zone database to the version 2019a.
89+
* 2018-06-11 v2.0.1 Default to midnight, if the time part of a date is missing.
8890
* 2018-06-10 v2.0.0 Use proper identifiers in vanilla browser modules.
8991
* 2018-11-17 v1.8.0 Include time zone data for years 1970-2038.
9092
* 2018-11-17 v1.7.0 Include full time zone data separately loadable.
@@ -110,4 +112,4 @@ Licensed under the MIT license.
110112
[date-fns]: https://github.com/date-fns/date-fns
111113
[timeZone plugin]: https://github.com/prantlf/dayjs/blob/combined/docs/en/Plugin.md#timezone
112114
[date-fns-timezone]: https://github.com/prantlf/date-fns-timezone
113-
[migration guide]: docs/migration.md
115+
[migration guide]: docs/migration.md#migration-from-1x-to-2x

docs/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Load the main module in the browser with plain JavaScript:
5050
</script>
5151
```
5252

53-
You can also load a specific version from CDN, for example: https://unpkg.com/[email protected].0/dist/index.umd.js.
53+
You can also load a specific version from CDN, for example: https://unpkg.com/[email protected].2/dist/index.umd.js.
5454

5555
## Modules
5656

docs/design.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The purpose of this library is to offer an efficient support for time zone handl
44

55
* Lightweight - nothing else is included. Thus serving well for other date & time libraries, but also for applications, which do not manipulate dates.
66
* Tiny - use packed time zone data, unpacked on demand. Compromise between loading time and being ready to use immediately.
7-
* Reliable - generated from the fresh official time zone database version 2018g. Canonical time zone names, aliases, UTC offsets, and daylight-saving time changes.
7+
* Reliable - generated from the fresh official time zone database version 2019a. Canonical time zone names, aliases, UTC offsets, and daylight-saving time changes.
88
* Customizable - named exports and functions divided to separate modules allow tree-shaking. Alternative time zone data can be supplied to reduce the library size.
99

1010
### Table of Contents

docs/usage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ Data for 2012-2022: 27 KB minified, 6.5 KB gzipped
183183
Custom time zone data can be used if the module `lookup-convert` is loaded instead of the default `index` module.
184184

185185
```html
186-
<script src="https://unpkg.com/[email protected].0/dist/lookup-convert.umd.js"></script>
187-
<script src="https://unpkg.com/[email protected].0/dist/data-2012-2022.umd.js"></script>
186+
<script src="https://unpkg.com/[email protected].2/dist/lookup-convert.umd.js"></script>
187+
<script src="https://unpkg.com/[email protected].2/dist/data-2012-2022.umd.js"></script>
188188
<script>
189189
(() => {
190190
const { populateTimeZones, findTimeZone, getZonedTime } = window.timezoneSupport
@@ -202,7 +202,7 @@ Custom time zone data can be used if the module `lookup-convert` is loaded inste
202202
If you want to use the time zone data for years 2012-2022 published by this project, you can simplify your code by using a bundled package with both data and code.
203203
204204
```html
205-
<script src="https://unpkg.com/[email protected].0/dist/index-2012-2022.umd.js"></script>
205+
<script src="https://unpkg.com/[email protected].2/dist/index-2012-2022.umd.js"></script>
206206
<script>
207207
(() => {
208208
const { findTimeZone, getZonedTime } = window.timezoneSupport

util/data/meta.json

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@
953953
"zones": [
954954
"Asia/Almaty",
955955
"Asia/Qyzylorda",
956+
"Asia/Qostanay",
956957
"Asia/Aqtobe",
957958
"Asia/Aqtau",
958959
"Asia/Atyrau",
@@ -1087,7 +1088,7 @@
10871088
]
10881089
},
10891090
"MK": {
1090-
"name": "Macedonia",
1091+
"name": "North Macedonia",
10911092
"abbr": "MK",
10921093
"zones": [
10931094
"Europe/Belgrade"
@@ -1442,9 +1443,9 @@
14421443
"Europe/Kaliningrad",
14431444
"Europe/Moscow",
14441445
"Europe/Simferopol",
1445-
"Europe/Volgograd",
14461446
"Europe/Kirov",
14471447
"Europe/Astrakhan",
1448+
"Europe/Volgograd",
14481449
"Europe/Saratov",
14491450
"Europe/Ulyanovsk",
14501451
"Europe/Samara",
@@ -1616,7 +1617,7 @@
16161617
]
16171618
},
16181619
"SZ": {
1619-
"name": "Swaziland",
1620+
"name": "Eswatini (Swaziland)",
16201621
"abbr": "SZ",
16211622
"zones": [
16221623
"Africa/Johannesburg"
@@ -3546,6 +3547,15 @@
35463547
],
35473548
"comments": "Qyzylorda/Kyzylorda/Kzyl-Orda"
35483549
},
3550+
"Asia/Qostanay": {
3551+
"name": "Asia/Qostanay",
3552+
"lat": 53.2,
3553+
"long": 63.6167,
3554+
"countries": [
3555+
"KZ"
3556+
],
3557+
"comments": "Qostanay/Kostanay/Kustanay"
3558+
},
35493559
"Asia/Aqtobe": {
35503560
"name": "Asia/Aqtobe",
35513561
"lat": 50.2833,
@@ -4274,15 +4284,6 @@
42744284
],
42754285
"comments": "MSK+00 - Crimea"
42764286
},
4277-
"Europe/Volgograd": {
4278-
"name": "Europe/Volgograd",
4279-
"lat": 48.7333,
4280-
"long": 44.4167,
4281-
"countries": [
4282-
"RU"
4283-
],
4284-
"comments": "MSK+00 - Volgograd"
4285-
},
42864287
"Europe/Kirov": {
42874288
"name": "Europe/Kirov",
42884289
"lat": 58.6,
@@ -4301,6 +4302,15 @@
43014302
],
43024303
"comments": "MSK+01 - Astrakhan"
43034304
},
4305+
"Europe/Volgograd": {
4306+
"name": "Europe/Volgograd",
4307+
"lat": 48.7333,
4308+
"long": 44.4167,
4309+
"countries": [
4310+
"RU"
4311+
],
4312+
"comments": "MSK+01 - Volgograd"
4313+
},
43044314
"Europe/Saratov": {
43054315
"name": "Europe/Saratov",
43064316
"lat": 51.5667,

util/data/packed.json

Lines changed: 22 additions & 21 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)