worldwide 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a62ae92238799768de74a38119535d8990b61f4b0210c814a9500d0ed09bddaa
4
- data.tar.gz: c2c1cb3653977fe88cc3a0fcae870e6e803bf96dcf180c88e18eaa11342389ec
3
+ metadata.gz: efbaf093f7d788844cf4ab407af37d0a752cda09a1ea08f930ab1e2ff4a0cb72
4
+ data.tar.gz: 0ad3a89ba63a65e6fd410b3413e251eda92edbfddd8dfb048d007a0cd2bf79c9
5
5
  SHA512:
6
- metadata.gz: 703441ab56d3b44854a76ccda3fc7c8102b705456fae5aa25a627c4add10475d1b9ed8b81529f3645072c51660d99d03e43879ee3392d0460fcd7601ca96fc1d
7
- data.tar.gz: d910c21f0a0c8235ea4a032cadfc34b08d370f3c781a5099b807b8a8e2474a9a442119c49fa17bd099d415729d5145063db1bda286fa83acb479c27dd6c27dd7
6
+ metadata.gz: 5233dc65c0add8cdcf09bf34b35893679f79d05e2008232c8e4f49b1518cf86c0890733a141e8a9578400d83885c6197457bf40b8fe819d4157289cc958f590d
7
+ data.tar.gz: a1b16f73426a9ac2b74406c6b56e50dcbe5c5da14efd8e4758bf1e947548f722f6758dee5d3829a8b6a0c290a79b707159bc0df416048c6fd005af4a15c58888
data/CHANGELOG.md CHANGED
@@ -27,8 +27,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
27
27
 
28
28
  ## [Unreleased]
29
29
 
30
+ --
31
+
32
+ ## [1.2.0] - 2024-06-05
33
+
30
34
  - Merge duplicate language definition on some region yaml files to restore missing languages; `NO` adds "en" and "nb", `SA` adds "en", SG does not change [#188](https://github.com/Shopify/worldwide/pull/188)
31
35
  - updated format_extended for TW VN [#187]https://github.com/Shopify/worldwide/pull/187)
36
+ - Add IANA timezone to rails timezone mappings [#194](https://github.com/Shopify/worldwide/pull/194)
32
37
 
33
38
  ## [1.1.0] - 2024-06-04
34
39
 
data/Gemfile.lock CHANGED
@@ -13,7 +13,7 @@ GIT
13
13
  PATH
14
14
  remote: .
15
15
  specs:
16
- worldwide (1.1.0)
16
+ worldwide (1.2.0)
17
17
  activesupport (>= 7.0)
18
18
  i18n
19
19
  phonelib (~> 0.8)
@@ -0,0 +1,615 @@
1
+ # There isn't a proper mapping for some zones, as they don't have a good match in Rails, but these are the least bad options.
2
+
3
+ Africa/Abidjan: Africa/Monrovia
4
+ Africa/Accra: Africa/Monrovia
5
+ Africa/Addis_Ababa: Africa/Nairobi
6
+ Africa/Algiers: Africa/Algiers
7
+ Africa/Asmara: Africa/Nairobi
8
+ Africa/Asmera: Africa/Nairobi
9
+ Africa/Bamako: Africa/Monrovia
10
+ Africa/Bangui: Africa/Algiers
11
+ Africa/Banjul: Africa/Monrovia
12
+ Africa/Bissau: Africa/Monrovia
13
+ Africa/Blantyre: Africa/Harare
14
+ Africa/Brazzaville: Africa/Algiers
15
+ Africa/Bujumbura: Africa/Harare
16
+ Africa/Cairo: Africa/Cairo
17
+ Africa/Casablanca: Africa/Casablanca
18
+ Africa/Ceuta: Europe/Madrid
19
+ Africa/Conakry: Africa/Monrovia
20
+ Africa/Dakar: Africa/Monrovia
21
+ Africa/Dar_es_Salaam: Africa/Nairobi
22
+ Africa/Djibouti: Africa/Nairobi
23
+ Africa/Douala: Africa/Algiers
24
+ Africa/El_Aaiun: Africa/Casablanca
25
+ Africa/Freetown: Africa/Monrovia
26
+ Africa/Gaborone: Africa/Harare
27
+ Africa/Harare: Africa/Harare
28
+ Africa/Johannesburg: Africa/Johannesburg
29
+ Africa/Juba: Africa/Harare
30
+ Africa/Kampala: Africa/Nairobi
31
+ Africa/Khartoum: Africa/Harare
32
+ Africa/Kigali: Africa/Harare
33
+ Africa/Kinshasa: Africa/Algiers
34
+ Africa/Lagos: Africa/Algiers
35
+ Africa/Libreville: Africa/Algiers
36
+ Africa/Lome: Africa/Monrovia
37
+ Africa/Luanda: Africa/Algiers
38
+ Africa/Lubumbashi: Africa/Harare
39
+ Africa/Lusaka: Africa/Harare
40
+ Africa/Malabo: Africa/Algiers
41
+ Africa/Maputo: Africa/Harare
42
+ Africa/Maseru: Africa/Johannesburg
43
+ Africa/Mbabane: Africa/Johannesburg
44
+ Africa/Mogadishu: Africa/Nairobi
45
+ Africa/Monrovia: Africa/Monrovia
46
+ Africa/Nairobi: Africa/Nairobi
47
+ Africa/Ndjamena: Africa/Algiers
48
+ Africa/Niamey: Africa/Algiers
49
+ Africa/Nouakchott: Africa/Monrovia
50
+ Africa/Ouagadougou: Africa/Monrovia
51
+ Africa/Porto-Novo: Africa/Algiers
52
+ Africa/Sao_Tome: Africa/Monrovia
53
+ Africa/Timbuktu: Africa/Monrovia
54
+ Africa/Tripoli: Africa/Harare
55
+ Africa/Tunis: Africa/Algiers
56
+ Africa/Windhoek: Africa/Harare
57
+ # America/Adak inexact match
58
+ America/Adak: Pacific/Honolulu
59
+ America/Anchorage: America/Juneau
60
+ America/Anguilla: America/Puerto_Rico
61
+ America/Antigua: America/Puerto_Rico
62
+ America/Araguaina: America/Sao_Paulo
63
+ America/Argentina/Buenos_Aires: America/Argentina/Buenos_Aires
64
+ America/Argentina/Catamarca: America/Argentina/Buenos_Aires
65
+ America/Argentina/ComodRivadavia: America/Argentina/Buenos_Aires
66
+ America/Argentina/Cordoba: America/Argentina/Buenos_Aires
67
+ America/Argentina/Jujuy: America/Argentina/Buenos_Aires
68
+ America/Argentina/La_Rioja: America/Argentina/Buenos_Aires
69
+ America/Argentina/Mendoza: America/Argentina/Buenos_Aires
70
+ America/Argentina/Rio_Gallegos: America/Argentina/Buenos_Aires
71
+ America/Argentina/Salta: America/Argentina/Buenos_Aires
72
+ America/Argentina/San_Juan: America/Argentina/Buenos_Aires
73
+ America/Argentina/San_Luis: America/Argentina/Buenos_Aires
74
+ America/Argentina/Tucuman: America/Argentina/Buenos_Aires
75
+ America/Argentina/Ushuaia: America/Argentina/Buenos_Aires
76
+ America/Aruba: America/Puerto_Rico
77
+ America/Asuncion: America/Halifax
78
+ America/Atikokan: America/Bogota
79
+ # America/Atka inexact match
80
+ America/Atka: Pacific/Honolulu
81
+ America/Bahia: America/Sao_Paulo
82
+ America/Bahia_Banderas: America/Mexico_City
83
+ America/Barbados: America/Puerto_Rico
84
+ America/Belem: America/Sao_Paulo
85
+ America/Belize: America/Mexico_City
86
+ America/Blanc-Sablon: America/Puerto_Rico
87
+ America/Boa_Vista: America/Caracas
88
+ America/Bogota: America/Bogota
89
+ America/Boise: America/Denver
90
+ America/Buenos_Aires: America/Argentina/Buenos_Aires
91
+ America/Cambridge_Bay: America/Denver
92
+ America/Campo_Grande: America/Caracas
93
+ America/Cancun: America/Bogota
94
+ America/Caracas: America/Caracas
95
+ America/Catamarca: America/Argentina/Buenos_Aires
96
+ America/Cayenne: America/Sao_Paulo
97
+ America/Cayman: America/Bogota
98
+ America/Chicago: America/Chicago
99
+ America/Chihuahua: America/Chihuahua
100
+ America/Ciudad_Juarez: America/Denver
101
+ America/Coral_Harbour: America/Bogota
102
+ America/Cordoba: America/Argentina/Buenos_Aires
103
+ America/Costa_Rica: America/Mexico_City
104
+ America/Creston: America/Phoenix
105
+ America/Cuiaba: America/Caracas
106
+ America/Curacao: America/Puerto_Rico
107
+ America/Danmarkshavn: Etc/Utc
108
+ America/Dawson: America/Phoenix
109
+ America/Dawson_Creek: America/Phoenix
110
+ America/Denver: America/Denver
111
+ America/Detroit: America/New_York
112
+ America/Dominica: America/Puerto_Rico
113
+ America/Edmonton: America/Denver
114
+ America/Eirunepe: America/Bogota
115
+ America/El_Salvador: America/Mexico_City
116
+ America/Ensenada: America/Los_Angeles
117
+ America/Fort_Nelson: America/Phoenix
118
+ America/Fort_Wayne: America/New_York
119
+ America/Fortaleza: America/Sao_Paulo
120
+ America/Glace_Bay: America/Halifax
121
+ America/Godthab: America/Godthab
122
+ America/Goose_Bay: America/Halifax
123
+ America/Grand_Turk: America/New_York
124
+ America/Grenada: America/Puerto_Rico
125
+ America/Guadeloupe: America/Puerto_Rico
126
+ America/Guatemala: America/Mexico_City
127
+ America/Guayaquil: America/Bogota
128
+ America/Guyana: America/Caracas
129
+ America/Halifax: America/Halifax
130
+ America/Havana: America/New_York
131
+ America/Hermosillo: America/Phoenix
132
+ America/Indiana/Indianapolis: America/Indiana/Indianapolis
133
+ America/Indiana/Knox: America/Chicago
134
+ America/Indiana/Marengo: America/Indiana/Indianapolis
135
+ America/Indiana/Petersburg: America/Indiana/Indianapolis
136
+ America/Indiana/Tell_City: America/Chicago
137
+ America/Indiana/Vevay: America/Indiana/Indianapolis
138
+ America/Indiana/Vincennes: America/Indiana/Indianapolis
139
+ America/Indiana/Winamac: America/Indiana/Indianapolis
140
+ America/Indianapolis: America/Indiana/Indianapolis
141
+ America/Inuvik: America/Denver
142
+ America/Iqaluit: America/New_York
143
+ America/Jamaica: America/Bogota
144
+ America/Jujuy: America/Argentina/Buenos_Aires
145
+ America/Juneau: America/Juneau
146
+ America/Kentucky/Louisville: America/New_York
147
+ America/Kentucky/Monticello: America/New_York
148
+ America/Knox_IN: America/Chicago
149
+ America/Kralendijk: America/Puerto_Rico
150
+ America/La_Paz: America/La_Paz
151
+ America/Lima: America/Lima
152
+ America/Los_Angeles: America/Los_Angeles
153
+ America/Louisville: America/New_York
154
+ America/Lower_Princes: America/Puerto_Rico
155
+ America/Maceio: America/Sao_Paulo
156
+ America/Managua: America/Mexico_City
157
+ America/Manaus: America/Caracas
158
+ America/Marigot: America/Puerto_Rico
159
+ America/Martinique: America/Puerto_Rico
160
+ America/Matamoros: America/Chicago
161
+ America/Mazatlan: America/Mazatlan
162
+ America/Mendoza: America/Argentina/Buenos_Aires
163
+ America/Menominee: America/Chicago
164
+ America/Merida: America/Mexico_City
165
+ America/Metlakatla: America/Juneau
166
+ America/Mexico_City: America/Mexico_City
167
+ # America/Miquelon inexact match
168
+ America/Miquelon: Atlantic/South_Georgia
169
+ America/Moncton: America/Halifax
170
+ America/Monterrey: America/Mexico_City
171
+ America/Montevideo: America/Montevideo
172
+ America/Montreal: America/New_York
173
+ America/Montserrat: America/Puerto_Rico
174
+ America/Nassau: America/New_York
175
+ America/New_York: America/New_York
176
+ America/Nipigon: America/New_York
177
+ America/Nome: America/Juneau
178
+ America/Noronha: Atlantic/South_Georgia
179
+ America/North_Dakota/Beulah: America/Chicago
180
+ America/North_Dakota/Center: America/Chicago
181
+ America/North_Dakota/New_Salem: America/Chicago
182
+ America/Nuuk: America/Godthab
183
+ America/Ojinaga: America/Chicago
184
+ America/Panama: America/Bogota
185
+ America/Pangnirtung: America/New_York
186
+ America/Paramaribo: America/Sao_Paulo
187
+ America/Phoenix: America/Phoenix
188
+ America/Port-au-Prince: America/New_York
189
+ America/Port_of_Spain: America/Puerto_Rico
190
+ America/Porto_Acre: America/Bogota
191
+ America/Porto_Velho: America/Caracas
192
+ America/Puerto_Rico: America/Puerto_Rico
193
+ America/Punta_Arenas: America/Sao_Paulo
194
+ America/Rainy_River: America/Chicago
195
+ America/Rankin_Inlet: America/Chicago
196
+ America/Recife: America/Sao_Paulo
197
+ America/Regina: America/Regina
198
+ America/Resolute: America/Chicago
199
+ America/Rio_Branco: America/Bogota
200
+ America/Rosario: America/Argentina/Buenos_Aires
201
+ America/Santa_Isabel: America/Tijuana
202
+ America/Santarem: America/Sao_Paulo
203
+ America/Santiago: America/Santiago
204
+ America/Santo_Domingo: America/Puerto_Rico
205
+ America/Sao_Paulo: America/Sao_Paulo
206
+ America/Scoresbysund: America/Godthab
207
+ America/Shiprock: America/Denver
208
+ America/Sitka: America/Juneau
209
+ America/St_Barthelemy: America/Puerto_Rico
210
+ America/St_Johns: America/St_Johns
211
+ America/St_Kitts: America/Puerto_Rico
212
+ America/St_Lucia: America/Puerto_Rico
213
+ America/St_Thomas: America/Puerto_Rico
214
+ America/St_Vincent: America/Puerto_Rico
215
+ America/Swift_Current: America/Regina
216
+ America/Tegucigalpa: America/Mexico_City
217
+ America/Thule: America/Halifax
218
+ America/Thunder_Bay: America/New_York
219
+ America/Tijuana: America/Tijuana
220
+ America/Toronto: America/New_York
221
+ America/Tortola: America/Puerto_Rico
222
+ America/Vancouver: America/Los_Angeles
223
+ America/Virgin: America/Puerto_Rico
224
+ America/Whitehorse: America/Phoenix
225
+ America/Winnipeg: America/Chicago
226
+ America/Yakutat: America/Juneau
227
+ America/Yellowknife: America/Denver
228
+ Antarctica/Casey: Australia/Perth
229
+ Antarctica/Davis: Asia/Jakarta
230
+ Antarctica/DumontDUrville: Pacific/Port_Moresby
231
+ Antarctica/Macquarie: Australia/Melbourne
232
+ Antarctica/Mawson: Asia/Karachi
233
+ Antarctica/McMurdo: Pacific/Auckland
234
+ Antarctica/Palmer: America/Sao_Paulo
235
+ Antarctica/Rothera: America/Sao_Paulo
236
+ Antarctica/South_Pole: Pacific/Auckland
237
+ Antarctica/Syowa: Asia/Riyadh
238
+ # Antarctica/Troll inexact match
239
+ Antarctica/Troll: Africa/Algiers
240
+ Antarctica/Vostok: Asia/Karachi
241
+ Arctic/Longyearbyen: Europe/Berlin
242
+ Asia/Aden: Asia/Riyadh
243
+ Asia/Almaty: Asia/Almaty
244
+ Asia/Amman: Europe/Istanbul
245
+ Asia/Anadyr: Asia/Kamchatka
246
+ Asia/Aqtau: Asia/Almaty
247
+ Asia/Aqtobe: Asia/Almaty
248
+ Asia/Ashgabat: Asia/Almaty
249
+ Asia/Ashkhabad: Asia/Almaty
250
+ Asia/Atyrau: Asia/Almaty
251
+ Asia/Baghdad: Asia/Baghdad
252
+ Asia/Bahrain: Asia/Riyadh
253
+ Asia/Baku: Asia/Baku
254
+ Asia/Bangkok: Asia/Bangkok
255
+ Asia/Barnaul: Asia/Novosibirsk
256
+ Asia/Beirut: Europe/Kiev
257
+ Asia/Bishkek: Asia/Dhaka
258
+ Asia/Brunei: Asia/Kuala_Lumpur
259
+ Asia/Calcutta: Asia/Kolkata
260
+ Asia/Chita: Asia/Yakutsk
261
+ Asia/Choibalsan: Asia/Chongqing
262
+ Asia/Chongqing: Asia/Chongqing
263
+ Asia/Chungking: Asia/Chongqing
264
+ Asia/Colombo: Asia/Colombo
265
+ Asia/Dacca: Asia/Dhaka
266
+ Asia/Damascus: Europe/Istanbul
267
+ Asia/Dhaka: Asia/Dhaka
268
+ Asia/Dili: Asia/Tokyo
269
+ Asia/Dubai: Asia/Yerevan
270
+ Asia/Dushanbe: Asia/Tashkent
271
+ Asia/Famagusta: Europe/Athens
272
+ Asia/Gaza: Asia/Jerusalem
273
+ Asia/Harbin: Asia/Shanghai
274
+ Asia/Hebron: Asia/Jerusalem
275
+ Asia/Ho_Chi_Minh: Asia/Bangkok
276
+ Asia/Hong_Kong: Asia/Hong_Kong
277
+ Asia/Hovd: Asia/Bangkok
278
+ Asia/Irkutsk: Asia/Irkutsk
279
+ Asia/Istanbul: Europe/Istanbul
280
+ Asia/Jakarta: Asia/Jakarta
281
+ Asia/Jayapura: Asia/Tokyo
282
+ Asia/Jerusalem: Asia/Jerusalem
283
+ Asia/Kabul: Asia/Kabul
284
+ Asia/Kamchatka: Asia/Kamchatka
285
+ Asia/Karachi: Asia/Karachi
286
+ Asia/Kashgar: Asia/Urumqi
287
+ Asia/Kathmandu: Asia/Kathmandu
288
+ Asia/Katmandu: Asia/Kathmandu
289
+ Asia/Khandyga: Asia/Yakutsk
290
+ Asia/Kolkata: Asia/Kolkata
291
+ Asia/Krasnoyarsk: Asia/Krasnoyarsk
292
+ Asia/Kuala_Lumpur: Asia/Kuala_Lumpur
293
+ Asia/Kuching: Asia/Kuala_Lumpur
294
+ Asia/Kuwait: Asia/Riyadh
295
+ Asia/Macao: Asia/Shanghai
296
+ Asia/Macau: Asia/Shanghai
297
+ Asia/Magadan: Asia/Magadan
298
+ Asia/Makassar: Asia/Kuala_Lumpur
299
+ Asia/Manila: Asia/Kuala_Lumpur
300
+ Asia/Muscat: Asia/Yerevan
301
+ Asia/Nicosia: Europe/Athens
302
+ Asia/Novokuznetsk: Asia/Novosibirsk
303
+ Asia/Novosibirsk: Asia/Novosibirsk
304
+ Asia/Omsk: Asia/Urumqi
305
+ Asia/Oral: Asia/Tashkent
306
+ Asia/Phnom_Penh: Asia/Bangkok
307
+ Asia/Pontianak: Asia/Jakarta
308
+ Asia/Pyongyang: Asia/Seoul
309
+ Asia/Qatar: Asia/Riyadh
310
+ Asia/Qostanay: Asia/Almaty
311
+ Asia/Qyzylorda: Asia/Almaty
312
+ Asia/Rangoon: Asia/Rangoon
313
+ Asia/Riyadh: Asia/Riyadh
314
+ Asia/Saigon: Asia/Bangkok
315
+ Asia/Sakhalin: Asia/Srednekolymsk
316
+ Asia/Samarkand: Asia/Tashkent
317
+ Asia/Seoul: Asia/Seoul
318
+ Asia/Shanghai: Asia/Shanghai
319
+ Asia/Singapore: Asia/Singapore
320
+ Asia/Srednekolymsk: Asia/Srednekolymsk
321
+ Asia/Taipei: Asia/Taipei
322
+ Asia/Tashkent: Asia/Tashkent
323
+ Asia/Tbilisi: Asia/Tbilisi
324
+ Asia/Tehran: Asia/Tehran
325
+ Asia/Tel_Aviv: Asia/Jerusalem
326
+ Asia/Thimbu: Asia/Dhaka
327
+ Asia/Thimphu: Asia/Dhaka
328
+ Asia/Tokyo: Asia/Tokyo
329
+ Asia/Tomsk: Asia/Novosibirsk
330
+ Asia/Ujung_Pandang: Asia/Kuala_Lumpur
331
+ Asia/Ulaanbaatar: Asia/Ulaanbaatar
332
+ Asia/Ulan_Bator: Asia/Ulaanbaatar
333
+ Asia/Urumqi: Asia/Urumqi
334
+ Asia/Ust-Nera: Asia/Vladivostok
335
+ Asia/Vientiane: Asia/Bangkok
336
+ Asia/Vladivostok: Asia/Vladivostok
337
+ Asia/Yakutsk: Asia/Yakutsk
338
+ Asia/Yangon: Asia/Rangoon
339
+ Asia/Yekaterinburg: Asia/Yekaterinburg
340
+ Asia/Yerevan: Asia/Yerevan
341
+ Atlantic/Azores: Atlantic/Azores
342
+ Atlantic/Bermuda: America/Halifax
343
+ Atlantic/Canary: Europe/London
344
+ Atlantic/Cape_Verde: Atlantic/Cape_Verde
345
+ Atlantic/Faeroe: Europe/London
346
+ Atlantic/Faroe: Europe/London
347
+ Atlantic/Jan_Mayen: Europe/Berlin
348
+ Atlantic/Madeira: Europe/London
349
+ Atlantic/Reykjavik: Africa/Monrovia
350
+ Atlantic/South_Georgia: Atlantic/South_Georgia
351
+ Atlantic/St_Helena: Africa/Monrovia
352
+ Atlantic/Stanley: America/Argentina/Buenos_Aires
353
+ Australia/ACT: Australia/Sydney
354
+ Australia/Adelaide: Australia/Adelaide
355
+ Australia/Brisbane: Australia/Brisbane
356
+ Australia/Broken_Hill: Australia/Adelaide
357
+ Australia/Canberra: Australia/Canberra
358
+ Australia/Currie: Australia/Hobart
359
+ Australia/Darwin: Australia/Darwin
360
+ # Australia/Eucla inexact match
361
+ Australia/Eucla: Australia/Perth
362
+ Australia/Hobart: Australia/Hobart
363
+ # Australia/LHI inexact match
364
+ Australia/LHI: Pacific/Noumea
365
+ Australia/Lindeman: Australia/Brisbane
366
+ # Australia/Lord_Howe inexact match
367
+ Australia/Lord_Howe: Pacific/Noumea
368
+ Australia/Melbourne: Australia/Melbourne
369
+ Australia/North: Australia/Darwin
370
+ Australia/NSW: Australia/Sydney
371
+ Australia/Perth: Australia/Perth
372
+ Australia/Queensland: Australia/Brisbane
373
+ Australia/South: Australia/Adelaide
374
+ Australia/Sydney: Australia/Sydney
375
+ Australia/Tasmania: Australia/Hobart
376
+ Australia/Victoria: Australia/Melbourne
377
+ Australia/West: Australia/Perth
378
+ Australia/Yancowinna: Australia/Adelaide
379
+ Brazil/Acre: America/Bogota
380
+ Brazil/DeNoronha: Atlantic/South_Georgia
381
+ Brazil/East: America/Sao_Paulo
382
+ Brazil/West: America/Caracas
383
+ Canada/Atlantic: America/Halifax
384
+ Canada/Central: America/Chicago
385
+ Canada/Eastern: America/New_York
386
+ Canada/Mountain: America/Denver
387
+ Canada/Newfoundland: America/St_Johns
388
+ Canada/Pacific: America/Los_Angeles
389
+ Canada/Saskatchewan: America/Regina
390
+ Canada/Yukon: America/Phoenix
391
+ CET: Europe/Paris
392
+ Chile/Continental: America/Santiago
393
+ Chile/EasterIsland: America/Chicago
394
+ CST6CDT: America/Chicago
395
+ Cuba: America/New_York
396
+ EET: Europe/Sofia
397
+ Egypt: Africa/Cairo
398
+ Eire: Europe/Dublin
399
+ EST: America/Bogota
400
+ EST5EDT: America/New_York
401
+ Etc/GMT: Etc/UTC
402
+ Etc/GMT+0: Etc/UTC
403
+ Etc/GMT+1: Atlantic/Cape_Verde
404
+ Etc/GMT+10: Pacific/Honolulu
405
+ Etc/GMT+11: Pacific/Midway
406
+ Etc/GMT+12: Etc/GMT+12
407
+ Etc/GMT+2: Atlantic/South_Georgia
408
+ Etc/GMT+3: America/Sao_Paulo
409
+ Etc/GMT+4: America/Caracas
410
+ Etc/GMT+5: America/Bogota
411
+ Etc/GMT+6: America/Mexico_City
412
+ Etc/GMT+7: America/Phoenix
413
+ # Etc/GMT+8 inexact match
414
+ Etc/GMT+8: America/Juneau
415
+ # Etc/GMT+9 inexact match
416
+ Etc/GMT+9: America/Juneau
417
+ Etc/GMT-0: Etc/UTC
418
+ Etc/GMT-1: Africa/Algiers
419
+ Etc/GMT-10: Pacific/Port_Moresby
420
+ Etc/GMT-11: Asia/Magadan
421
+ Etc/GMT-12: Pacific/Fiji
422
+ Etc/GMT-13: Pacific/Tongatapu
423
+ # Etc/GMT-14 inexact match
424
+ Etc/GMT-14: Pacific/Apia
425
+ Etc/GMT-2: Africa/Harare
426
+ Etc/GMT-3: Africa/Nairobi
427
+ Etc/GMT-4: Asia/Baku
428
+ Etc/GMT-5: Asia/Almaty
429
+ Etc/GMT-6: Asia/Dhaka
430
+ Etc/GMT-7: Asia/Bangkok
431
+ Etc/GMT-8: Asia/Chongqing
432
+ Etc/GMT-9: Asia/Yakutsk
433
+ Etc/GMT0: Etc/UTC
434
+ Etc/Greenwich: Etc/UTC
435
+ Etc/UCT: Etc/UTC
436
+ Etc/Universal: Etc/UTC
437
+ Etc/UTC: Etc/UTC
438
+ Etc/Zulu: Etc/UTC
439
+ Europe/Amsterdam: Europe/Brussels
440
+ Europe/Andorra: Europe/Brussels
441
+ Europe/Astrakhan: Asia/Yerevan
442
+ Europe/Athens: Europe/Athens
443
+ Europe/Belfast: Europe/London
444
+ Europe/Belgrade: Europe/Belgrade
445
+ Europe/Berlin: Europe/Berlin
446
+ Europe/Bratislava: Europe/Bratislava
447
+ Europe/Brussels: Europe/Brussels
448
+ Europe/Bucharest: Europe/Bucharest
449
+ Europe/Budapest: Europe/Budapest
450
+ Europe/Busingen: Europe/Zurich
451
+ Europe/Chisinau: Europe/Bucharest
452
+ Europe/Copenhagen: Europe/Copenhagen
453
+ Europe/Dublin: Europe/Dublin
454
+ Europe/Gibraltar: Europe/Madrid
455
+ Europe/Guernsey: Europe/London
456
+ Europe/Helsinki: Europe/Helsinki
457
+ Europe/Isle_of_Man: Europe/London
458
+ Europe/Istanbul: Europe/Istanbul
459
+ Europe/Jersey: Europe/London
460
+ Europe/Kaliningrad: Europe/Kaliningrad
461
+ Europe/Kiev: Europe/Kiev
462
+ Europe/Kirov: Europe/Moscow
463
+ Europe/Kyiv: Europe/Kiev
464
+ Europe/Lisbon: Europe/Lisbon
465
+ Europe/Ljubljana: Europe/Belgrade
466
+ Europe/London: Europe/London
467
+ Europe/Luxembourg: Europe/Brussels
468
+ Europe/Madrid: Europe/Madrid
469
+ Europe/Malta: Europe/Rome
470
+ Europe/Mariehamn: Europe/Helsinki
471
+ Europe/Minsk: Europe/Minsk
472
+ Europe/Monaco: Europe/Paris
473
+ Europe/Moscow: Europe/Moscow
474
+ Europe/Nicosia: Europe/Athens
475
+ Europe/Oslo: Europe/Berlin
476
+ Europe/Paris: Europe/Paris
477
+ Europe/Podgorica: Europe/Belgrade
478
+ Europe/Prague: Europe/Prague
479
+ Europe/Riga: Europe/Riga
480
+ Europe/Rome: Europe/Rome
481
+ Europe/Samara: Europe/Samara
482
+ Europe/San_Marino: Europe/Rome
483
+ Europe/Sarajevo: Europe/Belgrade
484
+ Europe/Saratov: Asia/Yerevan
485
+ Europe/Simferopol: Europe/Moscow
486
+ Europe/Skopje: Europe/Belgrade
487
+ Europe/Sofia: Europe/Sofia
488
+ Europe/Stockholm: Europe/Stockholm
489
+ Europe/Tallinn: Europe/Tallinn
490
+ Europe/Tirane: Europe/Belgrade
491
+ Europe/Tiraspol: Europe/Bucharest
492
+ Europe/Ulyanovsk: Asia/Yerevan
493
+ Europe/Uzhgorod: Europe/Kiev
494
+ Europe/Vaduz: Europe/Zurich
495
+ Europe/Vatican: Europe/Rome
496
+ Europe/Vienna: Europe/Vienna
497
+ Europe/Vilnius: Europe/Vilnius
498
+ Europe/Volgograd: Europe/Volgograd
499
+ Europe/Warsaw: Europe/Warsaw
500
+ Europe/Zagreb: Europe/Belgrade
501
+ Europe/Zaporozhye: Europe/Kiev
502
+ Europe/Zurich: Europe/Zurich
503
+ Factory: Etc/UTC
504
+ GB: Europe/London
505
+ GB-Eire: Europe/London
506
+ GMT: Etc/UTC
507
+ GMT+0: Etc/UTC
508
+ GMT-0: Etc/UTC
509
+ GMT0: Etc/UTC
510
+ Greenwich: Etc/UTC
511
+ Hongkong: Asia/Hong_Kong
512
+ HST: Pacific/Honolulu
513
+ Iceland: Africa/Monrovia
514
+ Indian/Antananarivo: Africa/Nairobi
515
+ Indian/Chagos: Asia/Dhaka
516
+ Indian/Christmas: Asia/Bangkok
517
+ Indian/Cocos: Asia/Rangoon
518
+ Indian/Comoro: Africa/Nairobi
519
+ Indian/Kerguelen: Asia/Karachi
520
+ Indian/Mahe: Asia/Yerevan
521
+ Indian/Maldives: Asia/Karachi
522
+ Indian/Mauritius: Asia/Yerevan
523
+ Indian/Mayotte: Africa/Nairobi
524
+ Indian/Reunion: Asia/Yerevan
525
+ Iran: Asia/Tehran
526
+ Israel: Asia/Jerusalem
527
+ Jamaica: America/Bogota
528
+ Japan: Asia/Tokyo
529
+ Kwajalein: Pacific/Majuro
530
+ Libya: Africa/Harare
531
+ MET: Europe/Paris
532
+ Mexico/BajaNorte: America/Tijuana
533
+ Mexico/BajaSur: America/Mazatlan
534
+ Mexico/General: America/Mexico_City
535
+ MST: America/Phoenix
536
+ MST7MDT: America/Denver
537
+ Navajo: America/Denver
538
+ NZ: Pacific/Auckland
539
+ NZ-CHAT: Pacific/Chatham
540
+ Pacific/Apia: Pacific/Apia
541
+ Pacific/Auckland: Pacific/Auckland
542
+ Pacific/Bougainville: Pacific/Noumea
543
+ Pacific/Chatham: Pacific/Chatham
544
+ Pacific/Chuuk: Pacific/Port_Moresby
545
+ Pacific/Easter: America/Chicago
546
+ Pacific/Efate: Pacific/Noumea
547
+ Pacific/Enderbury: Pacific/Tongatapu
548
+ Pacific/Fakaofo: Pacific/Fakaofo
549
+ Pacific/Fiji: Pacific/Fiji
550
+ Pacific/Funafuti: Pacific/Majuro
551
+ Pacific/Galapagos: America/Mexico_City
552
+ # Pacific/Gambier inexact match
553
+ Pacific/Gambier: Pacific/Honolulu
554
+ Pacific/Guadalcanal: Pacific/Noumea
555
+ Pacific/Guam: Pacific/Guam
556
+ Pacific/Honolulu: Pacific/Honolulu
557
+ Pacific/Johnston: Pacific/Honolulu
558
+ Pacific/Kanton: Pacific/Tongatapu
559
+ # Pacific/Kiritimati inexact match
560
+ Pacific/Kiritimati: Pacific/Apia
561
+ Pacific/Kosrae: Pacific/Noumea
562
+ Pacific/Kwajalein: Pacific/Majuro
563
+ Pacific/Majuro: Pacific/Majuro
564
+ # Pacific/Marquesas inexact match
565
+ Pacific/Marquesas: Pacific/Honolulu
566
+ Pacific/Midway: Pacific/Midway
567
+ Pacific/Nauru: Pacific/Majuro
568
+ Pacific/Niue: Pacific/Midway
569
+ # Pacific/Norfolk inexact match
570
+ Pacific/Norfolk: Pacific/Noumea
571
+ Pacific/Noumea: Pacific/Noumea
572
+ Pacific/Pago_Pago: Pacific/Pago_Pago
573
+ Pacific/Palau: Asia/Yakutsk
574
+ # Pacific/Pitcairn inexact match
575
+ Pacific/Pitcairn: America/Juneau
576
+ Pacific/Pohnpei: Pacific/Noumea
577
+ Pacific/Ponape: Pacific/Noumea
578
+ Pacific/Port_Moresby: Pacific/Port_Moresby
579
+ Pacific/Rarotonga: Pacific/Honolulu
580
+ Pacific/Saipan: Pacific/Guam
581
+ Pacific/Samoa: Pacific/Pago_Pago
582
+ Pacific/Tahiti: Pacific/Honolulu
583
+ Pacific/Tarawa: Pacific/Majuro
584
+ Pacific/Tongatapu: Pacific/Tongatapu
585
+ Pacific/Truk: Pacific/Port_Moresby
586
+ Pacific/Wake: Pacific/Majuro
587
+ Pacific/Wallis: Pacific/Majuro
588
+ Pacific/Yap: Pacific/Port_Moresby
589
+ Poland: Europe/Warsaw
590
+ Portugal: Europe/Lisbon
591
+ PRC: Asia/Shanghai
592
+ PST8PDT: America/Los_Angeles
593
+ ROC: Asia/Taipei
594
+ ROK: Asia/Seoul
595
+ Singapore: Asia/Singapore
596
+ Turkey: Europe/Istanbul
597
+ UCT: Etc/UTC
598
+ Universal: Etc/UTC
599
+ US/Alaska: America/Juneau
600
+ # US/Aleutian inexact match
601
+ US/Aleutian: Pacific/Honolulu
602
+ US/Arizona: America/Phoenix
603
+ US/Central: America/Chicago
604
+ US/East-Indiana: America/Indiana/Indianapolis
605
+ US/Eastern: America/New_York
606
+ US/Hawaii: Pacific/Honolulu
607
+ US/Indiana-Starke: America/Indiana/Indianapolis
608
+ US/Michigan: America/New_York
609
+ US/Mountain: America/Denver
610
+ US/Pacific: America/Los_Angeles
611
+ US/Samoa: Pacific/Pago_Pago
612
+ UTC: Etc/UTC
613
+ W-SU: Europe/Moscow
614
+ WET: Europe/London
615
+ Zulu: Etc/UTC
@@ -8,6 +8,16 @@ module Worldwide
8
8
  def to_supported(zone)
9
9
  DEPRECATED_ZONES_MAP.fetch(zone&.to_sym, zone)
10
10
  end
11
+
12
+ def to_rails(iana_timezone)
13
+ iana_timezones[iana_timezone]
14
+ end
15
+
16
+ private
17
+
18
+ def iana_timezones
19
+ @iana_timezones ||= YAML.safe_load_file("#{Worldwide::Paths::DB_DATA_ROOT}/iana_to_rails_time_zone.yml")
20
+ end
11
21
  end
12
22
 
13
23
  DEPRECATED_ZONES_MAP = {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Worldwide
4
- VERSION = "1.1.0"
4
+ VERSION = "1.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: worldwide
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-04 00:00:00.000000000 Z
11
+ date: 2024-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -6213,6 +6213,7 @@ files:
6213
6213
  - data/other/units/zh-TW.yml
6214
6214
  - data/top_locales.yml
6215
6215
  - db/data/country_codes.yml
6216
+ - db/data/iana_to_rails_time_zone.yml
6216
6217
  - db/data/regions/AC.yml
6217
6218
  - db/data/regions/AD.yml
6218
6219
  - db/data/regions/AE.yml