timezone 0.3.10 → 0.3.11

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
  SHA1:
3
- metadata.gz: 984f382a61540e0512f560dea57aca7412122d4a
4
- data.tar.gz: a6e3b7c13923046b0d7d234e94ac38520dfe7e4c
3
+ metadata.gz: f5db8fcfd27b22dcfad4d48baee5f73bcbda9926
4
+ data.tar.gz: 5154a1a3edec1bfb2c4b6a0d5afce051b0f1b890
5
5
  SHA512:
6
- metadata.gz: 30c15412ecf47d43df8f1e639ecdb9944d79ed06f61b69c77dddbde3bb48e90aca463d25990eef2231b64d334b347b24bfb2313609a3966795b1a1afdf233024
7
- data.tar.gz: 484b6298367a41f72a97a3dc1cc40d13b0f7b79f13fa8ae713efa9833cfcd2b10953391d9137f6e611ebf0a2330137d6024977954c2e64046b36aaedf478782f
6
+ metadata.gz: 4913225fff663c6223f4c5fd0167bfe27a3f22561131439ab6a76bdab6f45c819309cb7f516e8e54ca18800a15c7db06242aa7a62a2c47e8c0152be12494d743
7
+ data.tar.gz: 99f0da933742fd40ead23cd7e6d6a15749adddc6b673dd961bebe03f5647bc7dbc7c471bdc7a1a150243b2b0e6576d873e51bd579dcdfc0c45319cf745bb6fcb
@@ -1,3 +1,8 @@
1
+ # 0.3.11
2
+
3
+ * Fixed `active_support_time_zone` to only include the 149 `ActiveSupport`
4
+ timezones. Eventually this method will be removed entirely. (panthomakos)
5
+
1
6
  # 0.3.10
2
7
 
3
8
  * Added clearer error messages for invalid configurations. (panthomakos)
@@ -2,409 +2,142 @@ module Timezone
2
2
  # ActiveSupport class for mapping tz info identifiers to rails identifiers
3
3
  class ActiveSupport
4
4
  TIMEZONE_MAPPING = {
5
- "Australia/Adelaide" => "Adelaide",
6
- "Australia/Broken_Hill" => "Adelaide",
7
- "America/Anchorage" => "Alaska",
8
- "America/Juneau" => "Alaska",
9
- "America/Nome" => "Alaska",
10
- "America/Yakutat" => "Alaska",
11
- "Pacific/Gambier" => "Alaska",
12
- "Asia/Almaty" => "Almaty",
13
- "Europe/Amsterdam" => "Amsterdam",
14
- "Europe/Athens" => "Athens",
15
- "America/Anguilla" => "Atlantic Time (Canada)",
16
- "America/Antigua" => "Atlantic Time (Canada)",
17
- "America/Argentina/San_Luis" => "Atlantic Time (Canada)",
18
- "America/Aruba" => "Atlantic Time (Canada)",
19
- "America/Asuncion" => "Atlantic Time (Canada)",
20
- "America/Barbados" => "Atlantic Time (Canada)",
21
- "America/Blanc-Sablon" => "Atlantic Time (Canada)",
22
- "America/Boa_Vista" => "Atlantic Time (Canada)",
23
- "America/Campo_Grande" => "Atlantic Time (Canada)",
24
- "America/Cuiaba" => "Atlantic Time (Canada)",
25
- "America/Curacao" => "Atlantic Time (Canada)",
26
- "America/Dominica" => "Atlantic Time (Canada)",
27
- "America/Eirunepe" => "Atlantic Time (Canada)",
28
- "America/Glace_Bay" => "Atlantic Time (Canada)",
29
- "America/Goose_Bay" => "Atlantic Time (Canada)",
30
- "America/Grenada" => "Atlantic Time (Canada)",
31
- "America/Guadeloupe" => "Atlantic Time (Canada)",
32
- "America/Guyana" => "Atlantic Time (Canada)",
33
- "America/Halifax" => "Atlantic Time (Canada)",
34
- "America/Manaus" => "Atlantic Time (Canada)",
35
- "America/Marigot" => "Atlantic Time (Canada)",
36
- "America/Martinique" => "Atlantic Time (Canada)",
37
- "America/Moncton" => "Atlantic Time (Canada)",
38
- "America/Montserrat" => "Atlantic Time (Canada)",
39
- "America/Porto_Velho" => "Atlantic Time (Canada)",
40
- "America/Port_of_Spain" => "Atlantic Time (Canada)",
41
- "America/Puerto_Rico" => "Atlantic Time (Canada)",
42
- "America/Rio_Branco" => "Atlantic Time (Canada)",
43
- "America/Santo_Domingo" => "Atlantic Time (Canada)",
44
- "America/St_Barthelemy" => "Atlantic Time (Canada)",
45
- "America/St_Kitts" => "Atlantic Time (Canada)",
46
- "America/St_Lucia" => "Atlantic Time (Canada)",
47
- "America/St_Thomas" => "Atlantic Time (Canada)",
48
- "America/St_Vincent" => "Atlantic Time (Canada)",
49
- "America/Thule" => "Atlantic Time (Canada)",
50
- "America/Tortola" => "Atlantic Time (Canada)",
51
- "Antarctica/Palmer" => "Atlantic Time (Canada)",
52
- "Atlantic/Bermuda" => "Atlantic Time (Canada)",
53
- "Atlantic/Stanley" => "Atlantic Time (Canada)",
54
- "Antarctica/McMurdo" => "Auckland",
55
- "Antarctica/South_Pole" => "Auckland",
56
- "Pacific/Auckland" => "Auckland",
57
- "Pacific/Funafuti" => "Auckland",
58
- "Pacific/Kwajalein" => "Auckland",
59
- "Pacific/Majuro" => "Auckland",
60
- "Pacific/Nauru" => "Auckland",
61
- "Pacific/Tarawa" => "Auckland",
62
- "Pacific/Wake" => "Auckland",
63
- "Pacific/Wallis" => "Auckland",
64
- "Atlantic/Azores" => "Azores",
65
- "Asia/Baghdad" => "Baghdad",
66
- "Asia/Baku" => "Baku",
67
- "Asia/Dubai" => "Baku",
68
- "Indian/Mahe" => "Baku",
69
- "Indian/Mauritius" => "Baku",
70
- "Indian/Reunion" => "Baku",
71
- "Asia/Bangkok" => "Bangkok",
72
- "Europe/Belgrade" => "Belgrade",
73
- "Europe/Berlin" => "Berlin",
74
- "America/Bogota" => "Bogota",
75
- "Europe/Bratislava" => "Bratislava",
76
- "Australia/Brisbane" => "Brisbane",
77
- "Europe/Brussels" => "Brussels",
78
- "Europe/Bucharest" => "Bucharest",
79
- "Europe/Budapest" => "Budapest",
80
- "America/Araguaina" => "Buenos Aires",
81
- "America/Argentina/Buenos_Aires" => "Buenos Aires",
82
- "America/Argentina/Catamarca" => "Buenos Aires",
83
- "America/Argentina/Cordoba" => "Buenos Aires",
84
- "America/Argentina/Jujuy" => "Buenos Aires",
85
- "America/Argentina/La_Rioja" => "Buenos Aires",
86
- "America/Argentina/Mendoza" => "Buenos Aires",
87
- "America/Argentina/Rio_Gallegos" => "Buenos Aires",
88
- "America/Argentina/Salta" => "Buenos Aires",
89
- "America/Argentina/San_Juan" => "Buenos Aires",
90
- "America/Argentina/Tucuman" => "Buenos Aires",
91
- "America/Argentina/Ushuaia" => "Buenos Aires",
92
- "America/Bahia" => "Buenos Aires",
93
- "America/Belem" => "Buenos Aires",
94
- "America/Cayenne" => "Buenos Aires",
95
- "America/Fortaleza" => "Buenos Aires",
96
- "America/Godthab" => "Buenos Aires",
97
- "America/Maceio" => "Buenos Aires",
98
- "America/Miquelon" => "Buenos Aires",
99
- "America/Montevideo" => "Buenos Aires",
100
- "America/Paramaribo" => "Buenos Aires",
101
- "America/Recife" => "Buenos Aires",
102
- "America/Santarem" => "Buenos Aires",
103
- "America/Sao_Paulo" => "Buenos Aires",
104
- "Antarctica/Rothera" => "Buenos Aires",
105
- "Africa/Blantyre" => "Cairo",
106
- "Africa/Bujumbura" => "Cairo",
107
- "Africa/Cairo" => "Cairo",
108
- "Africa/Gaborone" => "Cairo",
109
- "Africa/Johannesburg" => "Cairo",
110
- "Africa/Kigali" => "Cairo",
111
- "Africa/Lubumbashi" => "Cairo",
112
- "Africa/Lusaka" => "Cairo",
113
- "Africa/Maputo" => "Cairo",
114
- "Africa/Maseru" => "Cairo",
115
- "Africa/Mbabane" => "Cairo",
116
- "Africa/Tripoli" => "Cairo",
117
- "Asia/Amman" => "Cairo",
118
- "Asia/Beirut" => "Cairo",
119
- "Asia/Damascus" => "Cairo",
120
- "Asia/Gaza" => "Cairo",
121
- "Asia/Nicosia" => "Cairo",
122
- "Europe/Chisinau" => "Cairo",
123
- "Europe/Kaliningrad" => "Cairo",
124
- "Europe/Kiev" => "Cairo",
125
- "Europe/Mariehamn" => "Cairo",
126
- "Europe/Simferopol" => "Cairo",
127
- "Europe/Uzhgorod" => "Cairo",
128
- "Europe/Zaporozhye" => "Cairo",
129
- "America/Scoresbysund" => "Cape Verde Is.",
130
- "Atlantic/Cape_Verde" => "Cape Verde Is.",
131
- "America/Caracas" => "Caracas",
132
- "Africa/Casablanca" => "Casablanca",
133
- "America/Belize" => "Central Time (US & Canada)",
134
- "America/Cancun" => "Central Time (US & Canada)",
135
- "America/Chicago" => "Central Time (US & Canada)",
136
- "America/Costa_Rica" => "Central Time (US & Canada)",
137
- "America/El_Salvador" => "Central Time (US & Canada)",
138
- "America/Guatemala" => "Central Time (US & Canada)",
139
- "America/Indiana/Knox" => "Central Time (US & Canada)",
140
- "America/Indiana/Tell_City" => "Central Time (US & Canada)",
141
- "America/Managua" => "Central Time (US & Canada)",
142
- "America/Matamoros" => "Central Time (US & Canada)",
143
- "America/Menominee" => "Central Time (US & Canada)",
144
- "America/Merida" => "Central Time (US & Canada)",
145
- "America/North_Dakota/Center" => "Central Time (US & Canada)",
146
- "America/North_Dakota/New_Salem" => "Central Time (US & Canada)",
147
- "America/Rainy_River" => "Central Time (US & Canada)",
148
- "America/Rankin_Inlet" => "Central Time (US & Canada)",
149
- "America/Regina" => "Central Time (US & Canada)",
150
- "America/Swift_Current" => "Central Time (US & Canada)",
151
- "America/Tegucigalpa" => "Central Time (US & Canada)",
152
- "America/Winnipeg" => "Central Time (US & Canada)",
153
- "Pacific/Easter" => "Central Time (US & Canada)",
154
- "Pacific/Galapagos" => "Central Time (US & Canada)",
155
- "America/Chihuahua" => "Chihuahua",
156
- "Asia/Chongqing" => "Chongqing",
157
- "Europe/Copenhagen" => "Copenhagen",
158
- "Australia/Darwin" => "Darwin",
159
- "Antarctica/Mawson" => "Dhaka",
160
- "Asia/Bishkek" => "Dhaka",
161
- "Asia/Dhaka" => "Dhaka",
162
- "Asia/Karachi" => "Dhaka",
163
- "Asia/Novokuznetsk" => "Dhaka",
164
- "Asia/Omsk" => "Dhaka",
165
- "Asia/Qyzylorda" => "Dhaka",
166
- "Asia/Thimphu" => "Dhaka",
167
- "Indian/Chagos" => "Dhaka",
168
- "Europe/Dublin" => "Dublin",
169
- "America/Atikokan" => "Eastern Time (US & Canada)",
170
- "America/Cayman" => "Eastern Time (US & Canada)",
171
- "America/Detroit" => "Eastern Time (US & Canada)",
172
- "America/Grand_Turk" => "Eastern Time (US & Canada)",
173
- "America/Guayaquil" => "Eastern Time (US & Canada)",
174
- "America/Havana" => "Eastern Time (US & Canada)",
175
- "America/Indiana/Indianapolis" => "Eastern Time (US & Canada)",
176
- "America/Indiana/Marengo" => "Eastern Time (US & Canada)",
177
- "America/Indiana/Petersburg" => "Eastern Time (US & Canada)",
178
- "America/Indiana/Vevay" => "Eastern Time (US & Canada)",
179
- "America/Indiana/Vincennes" => "Eastern Time (US & Canada)",
180
- "America/Indiana/Winamac" => "Eastern Time (US & Canada)",
181
- "America/Iqaluit" => "Eastern Time (US & Canada)",
182
- "America/Jamaica" => "Eastern Time (US & Canada)",
183
- "America/Kentucky/Louisville" => "Eastern Time (US & Canada)",
184
- "America/Kentucky/Monticello" => "Eastern Time (US & Canada)",
185
- "America/Montreal" => "Eastern Time (US & Canada)",
186
- "America/Nassau" => "Eastern Time (US & Canada)",
187
- "America/New_York" => "Eastern Time (US & Canada)",
188
- "America/Nipigon" => "Eastern Time (US & Canada)",
189
- "America/Panama" => "Eastern Time (US & Canada)",
190
- "America/Pangnirtung" => "Eastern Time (US & Canada)",
191
- "America/Port-au-Prince" => "Eastern Time (US & Canada)",
192
- "America/Resolute" => "Eastern Time (US & Canada)",
193
- "America/Thunder_Bay" => "Eastern Time (US & Canada)",
194
- "America/Toronto" => "Eastern Time (US & Canada)",
195
- "Pacific/Fiji" => "Fiji",
196
- "Pacific/Guam" => "Guam",
197
- "Africa/Harare" => "Harare",
198
- "America/Adak" => "Hawaii",
199
- "Pacific/Fakaofo" => "Hawaii",
200
- "Pacific/Honolulu" => "Hawaii",
201
- "Pacific/Johnston" => "Hawaii",
202
- "Pacific/Rarotonga" => "Hawaii",
203
- "Pacific/Tahiti" => "Hawaii",
204
- "Europe/Helsinki" => "Helsinki",
205
- "Australia/Hobart" => "Hobart",
206
- "Antarctica/Casey" => "Hong Kong",
207
- "Asia/Brunei" => "Hong Kong",
208
- "Asia/Choibalsan" => "Hong Kong",
209
- "Asia/Harbin" => "Hong Kong",
210
- "Asia/Hong_Kong" => "Hong Kong",
211
- "Asia/Kashgar" => "Hong Kong",
212
- "Asia/Kuching" => "Hong Kong",
213
- "Asia/Macau" => "Hong Kong",
214
- "Asia/Makassar" => "Hong Kong",
215
- "Asia/Manila" => "Hong Kong",
216
- "Asia/Shanghai" => "Hong Kong",
217
- "Asia/Ulaanbaatar" => "Hong Kong",
218
- "Asia/Irkutsk" => "Irkutsk",
219
- "Europe/Istanbul" => "Istanbul",
220
- "Antarctica/Davis" => "Jakarta",
221
- "Asia/Hovd" => "Jakarta",
222
- "Asia/Ho_Chi_Minh" => "Jakarta",
223
- "Asia/Jakarta" => "Jakarta",
224
- "Asia/Phnom_Penh" => "Jakarta",
225
- "Asia/Pontianak" => "Jakarta",
226
- "Asia/Vientiane" => "Jakarta",
227
- "Indian/Christmas" => "Jakarta",
228
- "Asia/Jerusalem" => "Jerusalem",
229
- "Asia/Kabul" => "Kabul",
230
- "Asia/Kamchatka" => "Kamchatka",
231
- "Asia/Aqtau" => "Karachi",
232
- "Asia/Aqtobe" => "Karachi",
233
- "Asia/Ashgabat" => "Karachi",
234
- "Asia/Dushanbe" => "Karachi",
235
- "Asia/Oral" => "Karachi",
236
- "Asia/Samarkand" => "Karachi",
237
- "Asia/Yekaterinburg" => "Karachi",
238
- "Indian/Kerguelen" => "Karachi",
239
- "Indian/Maldives" => "Karachi",
240
- "Asia/Kathmandu" => "Kathmandu",
241
- "Asia/Kolkata" => "Kolkata",
242
- "Asia/Krasnoyarsk" => "Krasnoyarsk",
243
- "Asia/Kuala_Lumpur" => "Kuala Lumpur",
244
- "Asia/Kuwait" => "Kuwait",
245
- "America/La_Paz" => "La Paz",
246
- "America/Lima" => "Lima",
247
- "Europe/Lisbon" => "Lisbon",
248
- "Europe/Ljubljana" => "Ljubljana",
249
- "Africa/Abidjan" => "London",
250
- "Africa/Accra" => "London",
251
- "Africa/Bamako" => "London",
252
- "Africa/Banjul" => "London",
253
- "Africa/Bissau" => "London",
254
- "Africa/Conakry" => "London",
255
- "Africa/Dakar" => "London",
256
- "Africa/El_Aaiun" => "London",
257
- "Africa/Freetown" => "London",
258
- "Africa/Lome" => "London",
259
- "Africa/Nouakchott" => "London",
260
- "Africa/Ouagadougou" => "London",
261
- "Africa/Sao_Tome" => "London",
262
- "America/Danmarkshavn" => "London",
263
- "Antarctica/Vostok" => "London",
264
- "Atlantic/Canary" => "London",
265
- "Atlantic/Faroe" => "London",
266
- "Atlantic/Madeira" => "London",
267
- "Atlantic/Reykjavik" => "London",
268
- "Atlantic/St_Helena" => "London",
269
- "Europe/Guernsey" => "London",
270
- "Europe/Isle_of_Man" => "London",
271
- "Europe/Jersey" => "London",
272
- "Europe/London" => "London",
273
- "Europe/Madrid" => "Madrid",
274
- "Asia/Magadan" => "Magadan",
275
- "America/Mazatlan" => "Mazatlan",
276
- "Australia/Melbourne" => "Melbourne",
277
- "America/Mexico_City" => "Mexico City",
278
- "America/Noronha" => "Mid-Atlantic",
279
- "Atlantic/South_Georgia" => "Mid-Atlantic",
280
- "Europe/Minsk" => "Minsk",
281
- "Africa/Monrovia" => "Monrovia",
282
- "America/Monterrey" => "Monterrey",
283
- "Africa/Addis_Ababa" => "Moscow",
284
- "Africa/Asmara" => "Moscow",
285
- "Africa/Dar_es_Salaam" => "Moscow",
286
- "Africa/Djibouti" => "Moscow",
287
- "Africa/Kampala" => "Moscow",
288
- "Africa/Khartoum" => "Moscow",
289
- "Africa/Mogadishu" => "Moscow",
290
- "Antarctica/Syowa" => "Moscow",
291
- "Asia/Aden" => "Moscow",
292
- "Asia/Bahrain" => "Moscow",
293
- "Asia/Qatar" => "Moscow",
294
- "Europe/Moscow" => "Moscow",
295
- "Europe/Samara" => "Moscow",
296
- "Indian/Antananarivo" => "Moscow",
297
- "Indian/Comoro" => "Moscow",
298
- "Indian/Mayotte" => "Moscow",
299
- "America/Boise" => "Mountain Time (US & Canada)",
300
- "America/Cambridge_Bay" => "Mountain Time (US & Canada)",
301
- "America/Dawson_Creek" => "Mountain Time (US & Canada)",
302
- "America/Denver" => "Mountain Time (US & Canada)",
303
- "America/Edmonton" => "Mountain Time (US & Canada)",
304
- "America/Hermosillo" => "Mountain Time (US & Canada)",
305
- "America/Inuvik" => "Mountain Time (US & Canada)",
306
- "America/Ojinaga" => "Mountain Time (US & Canada)",
307
- "America/Phoenix" => "Mountain Time (US & Canada)",
308
- "America/Shiprock" => "Mountain Time (US & Canada)",
309
- "America/Yellowknife" => "Mountain Time (US & Canada)",
310
- "Asia/Colombo" => "Mumbai",
311
- "Asia/Muscat" => "Muscat",
312
- "Africa/Nairobi" => "Nairobi",
313
- "America/St_Johns" => "Newfoundland",
314
- "Asia/Novosibirsk" => "Novosibirsk",
315
- "Pacific/Enderbury" => "Nuku'alofa",
316
- "Pacific/Tongatapu" => "Nuku'alofa",
317
- "America/Dawson" => "Pacific Time (US & Canada)",
318
- "America/Los_Angeles" => "Pacific Time (US & Canada)",
319
- "America/Santa_Isabel" => "Pacific Time (US & Canada)",
320
- "America/Vancouver" => "Pacific Time (US & Canada)",
321
- "America/Whitehorse" => "Pacific Time (US & Canada)",
322
- "Pacific/Pitcairn" => "Pacific Time (US & Canada)",
323
- "Africa/Algiers" => "Paris",
324
- "Africa/Bangui" => "Paris",
325
- "Africa/Brazzaville" => "Paris",
326
- "Africa/Ceuta" => "Paris",
327
- "Africa/Douala" => "Paris",
328
- "Africa/Kinshasa" => "Paris",
329
- "Africa/Lagos" => "Paris",
330
- "Africa/Libreville" => "Paris",
331
- "Africa/Luanda" => "Paris",
332
- "Africa/Malabo" => "Paris",
333
- "Africa/Ndjamena" => "Paris",
334
- "Africa/Niamey" => "Paris",
335
- "Africa/Porto-Novo" => "Paris",
336
- "Africa/Tunis" => "Paris",
337
- "Africa/Windhoek" => "Paris",
338
- "Arctic/Longyearbyen" => "Paris",
339
- "Europe/Andorra" => "Paris",
340
- "Europe/Gibraltar" => "Paris",
341
- "Europe/Luxembourg" => "Paris",
342
- "Europe/Malta" => "Paris",
343
- "Europe/Monaco" => "Paris",
344
- "Europe/Oslo" => "Paris",
345
- "Europe/Paris" => "Paris",
346
- "Europe/Podgorica" => "Paris",
347
- "Europe/San_Marino" => "Paris",
348
- "Europe/Tirane" => "Paris",
349
- "Europe/Vaduz" => "Paris",
350
- "Europe/Vatican" => "Paris",
351
- "Europe/Zurich" => "Paris",
352
- "Australia/Perth" => "Perth",
353
- "Pacific/Port_Moresby" => "Port Moresby",
354
- "Europe/Prague" => "Prague",
355
- "Asia/Rangoon" => "Rangoon",
356
- "Indian/Cocos" => "Rangoon",
357
- "Europe/Riga" => "Riga",
358
- "Asia/Riyadh" => "Riyadh",
359
- "Europe/Rome" => "Rome",
360
- "Pacific/Apia" => "Samoa",
361
- "Pacific/Midway" => "Samoa",
362
- "Pacific/Niue" => "Samoa",
363
- "Pacific/Pago_Pago" => "Samoa",
364
- "America/Santiago" => "Santiago",
365
- "Europe/Sarajevo" => "Sarajevo",
366
- "Asia/Seoul" => "Seoul",
367
- "Asia/Singapore" => "Singapore",
368
- "Europe/Skopje" => "Skopje",
369
- "Europe/Sofia" => "Sofia",
370
- "Asia/Anadyr" => "Solomon Is.",
371
- "Pacific/Efate" => "Solomon Is.",
372
- "Pacific/Guadalcanal" => "Solomon Is.",
373
- "Pacific/Kosrae" => "Solomon Is.",
374
- "Pacific/Noumea" => "Solomon Is.",
375
- "Pacific/Ponape" => "Solomon Is.",
376
- "Europe/Stockholm" => "Stockholm",
377
- "Antarctica/DumontDUrville" => "Sydney",
378
- "Asia/Sakhalin" => "Sydney",
379
- "Australia/Currie" => "Sydney",
380
- "Australia/Lindeman" => "Sydney",
381
- "Australia/Sydney" => "Sydney",
382
- "Pacific/Saipan" => "Sydney",
383
- "Pacific/Truk" => "Sydney",
384
- "Asia/Taipei" => "Taipei",
385
- "Europe/Tallinn" => "Tallinn",
386
- "Asia/Tashkent" => "Tashkent",
387
- "Asia/Tbilisi" => "Tbilisi",
388
- "Asia/Tehran" => "Tehran",
389
- "America/Tijuana" => "Tijuana",
390
- "Asia/Dili" => "Tokyo",
391
- "Asia/Jayapura" => "Tokyo",
392
- "Asia/Pyongyang" => "Tokyo",
393
- "Asia/Tokyo" => "Tokyo",
394
- "Pacific/Palau" => "Tokyo",
395
- "Asia/Urumqi" => "Urumqi",
396
- "Europe/Vienna" => "Vienna",
397
- "Europe/Vilnius" => "Vilnius",
398
- "Asia/Vladivostok" => "Vladivostok",
399
- "Europe/Volgograd" => "Volgograd",
400
- "Europe/Warsaw" => "Warsaw",
401
- "Asia/Yakutsk" => "Yakutsk",
402
- "Asia/Yerevan" => "Yerevan",
403
- "Europe/Zagreb" => "Zagreb",
5
+ "Pacific/Midway"=>"Midway Island",
6
+ "Pacific/Pago_Pago"=>"American Samoa",
7
+ "Pacific/Honolulu"=>"Hawaii",
8
+ "America/Juneau"=>"Alaska",
9
+ "America/Los_Angeles"=>"Pacific Time (US & Canada)",
10
+ "America/Tijuana"=>"Tijuana",
11
+ "America/Denver"=>"Mountain Time (US & Canada)",
12
+ "America/Phoenix"=>"Arizona",
13
+ "America/Chihuahua"=>"Chihuahua",
14
+ "America/Mazatlan"=>"Mazatlan",
15
+ "America/Chicago"=>"Central Time (US & Canada)",
16
+ "America/Regina"=>"Saskatchewan",
17
+ "America/Mexico_City"=>"Mexico City",
18
+ "America/Monterrey"=>"Monterrey",
19
+ "America/Guatemala"=>"Central America",
20
+ "America/New_York"=>"Eastern Time (US & Canada)",
21
+ "America/Indiana/Indianapolis"=>"Indiana (East)",
22
+ "America/Bogota"=>"Bogota",
23
+ "America/Lima"=>"Quito",
24
+ "America/Halifax"=>"Atlantic Time (Canada)",
25
+ "America/Caracas"=>"Caracas",
26
+ "America/La_Paz"=>"La Paz",
27
+ "America/Santiago"=>"Santiago",
28
+ "America/St_Johns"=>"Newfoundland",
29
+ "America/Sao_Paulo"=>"Brasilia",
30
+ "America/Argentina/Buenos_Aires"=>"Buenos Aires",
31
+ "America/Montevideo"=>"Montevideo",
32
+ "America/Guyana"=>"Georgetown",
33
+ "America/Godthab"=>"Greenland",
34
+ "Atlantic/South_Georgia"=>"Mid-Atlantic",
35
+ "Atlantic/Azores"=>"Azores",
36
+ "Atlantic/Cape_Verde"=>"Cape Verde Is.",
37
+ "Europe/Dublin"=>"Dublin",
38
+ "Europe/London"=>"London",
39
+ "Europe/Lisbon"=>"Lisbon",
40
+ "Africa/Casablanca"=>"Casablanca",
41
+ "Africa/Monrovia"=>"Monrovia",
42
+ "Etc/UTC"=>"UTC",
43
+ "Europe/Belgrade"=>"Belgrade",
44
+ "Europe/Bratislava"=>"Bratislava",
45
+ "Europe/Budapest"=>"Budapest",
46
+ "Europe/Ljubljana"=>"Ljubljana",
47
+ "Europe/Prague"=>"Prague",
48
+ "Europe/Sarajevo"=>"Sarajevo",
49
+ "Europe/Skopje"=>"Skopje",
50
+ "Europe/Warsaw"=>"Warsaw",
51
+ "Europe/Zagreb"=>"Zagreb",
52
+ "Europe/Brussels"=>"Brussels",
53
+ "Europe/Copenhagen"=>"Copenhagen",
54
+ "Europe/Madrid"=>"Madrid",
55
+ "Europe/Paris"=>"Paris",
56
+ "Europe/Amsterdam"=>"Amsterdam",
57
+ "Europe/Berlin"=>"Bern",
58
+ "Europe/Rome"=>"Rome",
59
+ "Europe/Stockholm"=>"Stockholm",
60
+ "Europe/Vienna"=>"Vienna",
61
+ "Africa/Algiers"=>"West Central Africa",
62
+ "Europe/Bucharest"=>"Bucharest",
63
+ "Africa/Cairo"=>"Cairo",
64
+ "Europe/Helsinki"=>"Helsinki",
65
+ "Europe/Kiev"=>"Kyiv",
66
+ "Europe/Riga"=>"Riga",
67
+ "Europe/Sofia"=>"Sofia",
68
+ "Europe/Tallinn"=>"Tallinn",
69
+ "Europe/Vilnius"=>"Vilnius",
70
+ "Europe/Athens"=>"Athens",
71
+ "Europe/Istanbul"=>"Istanbul",
72
+ "Europe/Minsk"=>"Minsk",
73
+ "Asia/Jerusalem"=>"Jerusalem",
74
+ "Africa/Harare"=>"Harare",
75
+ "Africa/Johannesburg"=>"Pretoria",
76
+ "Europe/Kaliningrad"=>"Kaliningrad",
77
+ "Europe/Moscow"=>"St. Petersburg",
78
+ "Europe/Volgograd"=>"Volgograd",
79
+ "Europe/Samara"=>"Samara",
80
+ "Asia/Kuwait"=>"Kuwait",
81
+ "Asia/Riyadh"=>"Riyadh",
82
+ "Africa/Nairobi"=>"Nairobi",
83
+ "Asia/Baghdad"=>"Baghdad",
84
+ "Asia/Tehran"=>"Tehran",
85
+ "Asia/Muscat"=>"Muscat",
86
+ "Asia/Baku"=>"Baku",
87
+ "Asia/Tbilisi"=>"Tbilisi",
88
+ "Asia/Yerevan"=>"Yerevan",
89
+ "Asia/Kabul"=>"Kabul",
90
+ "Asia/Yekaterinburg"=>"Ekaterinburg",
91
+ "Asia/Karachi"=>"Karachi",
92
+ "Asia/Tashkent"=>"Tashkent",
93
+ "Asia/Kolkata"=>"New Delhi",
94
+ "Asia/Kathmandu"=>"Kathmandu",
95
+ "Asia/Dhaka"=>"Dhaka",
96
+ "Asia/Colombo"=>"Sri Jayawardenepura",
97
+ "Asia/Almaty"=>"Almaty",
98
+ "Asia/Novosibirsk"=>"Novosibirsk",
99
+ "Asia/Rangoon"=>"Rangoon",
100
+ "Asia/Bangkok"=>"Hanoi",
101
+ "Asia/Jakarta"=>"Jakarta",
102
+ "Asia/Krasnoyarsk"=>"Krasnoyarsk",
103
+ "Asia/Shanghai"=>"Beijing",
104
+ "Asia/Chongqing"=>"Chongqing",
105
+ "Asia/Hong_Kong"=>"Hong Kong",
106
+ "Asia/Urumqi"=>"Urumqi",
107
+ "Asia/Kuala_Lumpur"=>"Kuala Lumpur",
108
+ "Asia/Singapore"=>"Singapore",
109
+ "Asia/Taipei"=>"Taipei",
110
+ "Australia/Perth"=>"Perth",
111
+ "Asia/Irkutsk"=>"Irkutsk",
112
+ "Asia/Ulaanbaatar"=>"Ulaanbaatar",
113
+ "Asia/Seoul"=>"Seoul",
114
+ "Asia/Tokyo"=>"Tokyo",
115
+ "Asia/Yakutsk"=>"Yakutsk",
116
+ "Australia/Darwin"=>"Darwin",
117
+ "Australia/Adelaide"=>"Adelaide",
118
+ "Australia/Melbourne"=>"Melbourne",
119
+ "Australia/Sydney"=>"Sydney",
120
+ "Australia/Brisbane"=>"Brisbane",
121
+ "Australia/Hobart"=>"Hobart",
122
+ "Asia/Vladivostok"=>"Vladivostok",
123
+ "Pacific/Guam"=>"Guam",
124
+ "Pacific/Port_Moresby"=>"Port Moresby",
125
+ "Asia/Magadan"=>"Magadan",
126
+ "Asia/Srednekolymsk"=>"Srednekolymsk",
127
+ "Pacific/Guadalcanal"=>"Solomon Is.",
128
+ "Pacific/Noumea"=>"New Caledonia",
129
+ "Pacific/Fiji"=>"Fiji",
130
+ "Asia/Kamchatka"=>"Kamchatka",
131
+ "Pacific/Majuro"=>"Marshall Is.",
132
+ "Pacific/Auckland"=>"Wellington",
133
+ "Pacific/Tongatapu"=>"Nuku'alofa",
134
+ "Pacific/Fakaofo"=>"Tokelau Is.",
135
+ "Pacific/Chatham"=>"Chatham Is.",
136
+ "Pacific/Apia"=>"Samoa"
404
137
  }
405
138
 
406
139
  def self.format(zone)
407
- TIMEZONE_MAPPING[zone]
140
+ TIMEZONE_MAPPING[zone] || zone
408
141
  end
409
142
  end
410
143
  end
@@ -1,3 +1,3 @@
1
1
  module Timezone
2
- VERSION = "0.3.10"
2
+ VERSION = "0.3.11"
3
3
  end
@@ -232,5 +232,13 @@ class TimezoneTest < ::Minitest::Unit::TestCase
232
232
  timezone = Timezone::Zone.new(:zone => 'Australia/Adelaide')
233
233
  assert_equal 'Australia/Adelaide', timezone.zone
234
234
  assert_equal 'Adelaide', timezone.active_support_time_zone
235
+
236
+ timezone = Timezone::Zone.new(:zone => 'America/Phoenix')
237
+ assert_equal 'America/Phoenix', timezone.zone
238
+ assert_equal 'Arizona', timezone.active_support_time_zone
239
+
240
+ timezone = Timezone::Zone.new(:zone => 'America/Anchorage')
241
+ assert_equal 'America/Anchorage', timezone.zone
242
+ assert_equal 'America/Anchorage', timezone.active_support_time_zone
235
243
  end
236
244
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timezone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pan Thomakos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-15 00:00:00.000000000 Z
11
+ date: 2015-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '4.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: timecop
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mocha
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: A simple way to get accurate current and historical timezone information
@@ -80,8 +80,8 @@ extra_rdoc_files:
80
80
  - README.markdown
81
81
  - License.txt
82
82
  files:
83
- - ".gitignore"
84
- - ".travis.yml"
83
+ - .gitignore
84
+ - .travis.yml
85
85
  - CHANGES.markdown
86
86
  - CONTRIBUTING.markdown
87
87
  - Gemfile
@@ -703,25 +703,25 @@ licenses:
703
703
  metadata: {}
704
704
  post_install_message:
705
705
  rdoc_options:
706
- - "--charset=UTF-8"
706
+ - --charset=UTF-8
707
707
  require_paths:
708
708
  - lib
709
709
  required_ruby_version: !ruby/object:Gem::Requirement
710
710
  requirements:
711
- - - ">="
711
+ - - '>='
712
712
  - !ruby/object:Gem::Version
713
713
  version: '0'
714
714
  required_rubygems_version: !ruby/object:Gem::Requirement
715
715
  requirements:
716
- - - ">="
716
+ - - '>='
717
717
  - !ruby/object:Gem::Version
718
718
  version: '0'
719
719
  requirements: []
720
720
  rubyforge_project: timezone
721
- rubygems_version: 2.2.3
721
+ rubygems_version: 2.0.14
722
722
  signing_key:
723
723
  specification_version: 4
724
- summary: timezone-0.3.10
724
+ summary: timezone-0.3.11
725
725
  test_files:
726
726
  - test/basic_lookup_test.rb
727
727
  - test/data/Helsinki_rules_without_timestamps.json