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 +4 -4
- data/CHANGES.markdown +5 -0
- data/lib/timezone/active_support.rb +133 -400
- data/lib/timezone/version.rb +1 -1
- data/test/timezone_test.rb +8 -0
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5db8fcfd27b22dcfad4d48baee5f73bcbda9926
|
4
|
+
data.tar.gz: 5154a1a3edec1bfb2c4b6a0d5afce051b0f1b890
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4913225fff663c6223f4c5fd0167bfe27a3f22561131439ab6a76bdab6f45c819309cb7f516e8e54ca18800a15c7db06242aa7a62a2c47e8c0152be12494d743
|
7
|
+
data.tar.gz: 99f0da933742fd40ead23cd7e6d6a15749adddc6b673dd961bebe03f5647bc7dbc7c471bdc7a1a150243b2b0e6576d873e51bd579dcdfc0c45319cf745bb6fcb
|
data/CHANGES.markdown
CHANGED
@@ -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
|
-
"
|
6
|
-
"
|
7
|
-
"
|
8
|
-
"America/Juneau"
|
9
|
-
"America/
|
10
|
-
"America/
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"
|
14
|
-
"
|
15
|
-
"America/
|
16
|
-
"America/
|
17
|
-
"America/
|
18
|
-
"America/
|
19
|
-
"America/
|
20
|
-
"America/
|
21
|
-
"America/
|
22
|
-
"America/
|
23
|
-
"America/
|
24
|
-
"America/
|
25
|
-
"America/
|
26
|
-
"America/
|
27
|
-
"America/
|
28
|
-
"America/
|
29
|
-
"America/
|
30
|
-
"America/
|
31
|
-
"America/
|
32
|
-
"America/Guyana"
|
33
|
-
"America/
|
34
|
-
"
|
35
|
-
"
|
36
|
-
"
|
37
|
-
"
|
38
|
-
"
|
39
|
-
"
|
40
|
-
"
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"
|
48
|
-
"
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"
|
52
|
-
"
|
53
|
-
"
|
54
|
-
"
|
55
|
-
"
|
56
|
-
"
|
57
|
-
"
|
58
|
-
"
|
59
|
-
"
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"
|
63
|
-
"
|
64
|
-
"
|
65
|
-
"
|
66
|
-
"
|
67
|
-
"
|
68
|
-
"
|
69
|
-
"
|
70
|
-
"
|
71
|
-
"
|
72
|
-
"Europe/
|
73
|
-
"
|
74
|
-
"
|
75
|
-
"
|
76
|
-
"
|
77
|
-
"Europe/
|
78
|
-
"Europe/
|
79
|
-
"Europe/
|
80
|
-
"
|
81
|
-
"
|
82
|
-
"
|
83
|
-
"
|
84
|
-
"
|
85
|
-
"
|
86
|
-
"
|
87
|
-
"
|
88
|
-
"
|
89
|
-
"
|
90
|
-
"
|
91
|
-
"
|
92
|
-
"
|
93
|
-
"
|
94
|
-
"
|
95
|
-
"
|
96
|
-
"
|
97
|
-
"
|
98
|
-
"
|
99
|
-
"
|
100
|
-
"
|
101
|
-
"
|
102
|
-
"
|
103
|
-
"
|
104
|
-
"
|
105
|
-
"
|
106
|
-
"
|
107
|
-
"
|
108
|
-
"
|
109
|
-
"
|
110
|
-
"
|
111
|
-
"
|
112
|
-
"
|
113
|
-
"
|
114
|
-
"
|
115
|
-
"
|
116
|
-
"
|
117
|
-
"
|
118
|
-
"
|
119
|
-
"
|
120
|
-
"
|
121
|
-
"
|
122
|
-
"
|
123
|
-
"
|
124
|
-
"
|
125
|
-
"
|
126
|
-
"
|
127
|
-
"
|
128
|
-
"
|
129
|
-
"
|
130
|
-
"
|
131
|
-
"
|
132
|
-
"
|
133
|
-
"
|
134
|
-
"
|
135
|
-
"
|
136
|
-
"
|
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
|
data/lib/timezone/version.rb
CHANGED
data/test/timezone_test.rb
CHANGED
@@ -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.
|
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-
|
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
|
-
-
|
84
|
-
-
|
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
|
-
-
|
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.
|
721
|
+
rubygems_version: 2.0.14
|
722
722
|
signing_key:
|
723
723
|
specification_version: 4
|
724
|
-
summary: timezone-0.3.
|
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
|