tzinfo 0.3.40 → 0.3.41
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of tzinfo might be problematic. Click here for more details.
- data/CHANGES +6 -0
- data/lib/tzinfo/definitions/Africa/Accra.rb +32 -0
- data/lib/tzinfo/definitions/Africa/Bamako.rb +1 -9
- data/lib/tzinfo/definitions/Africa/Banjul.rb +1 -10
- data/lib/tzinfo/definitions/Africa/Conakry.rb +1 -9
- data/lib/tzinfo/definitions/Africa/Dakar.rb +1 -8
- data/lib/tzinfo/definitions/Africa/Freetown.rb +1 -41
- data/lib/tzinfo/definitions/Africa/Lome.rb +1 -6
- data/lib/tzinfo/definitions/Africa/Nouakchott.rb +1 -9
- data/lib/tzinfo/definitions/Africa/Ouagadougou.rb +1 -6
- data/lib/tzinfo/definitions/Africa/Sao_Tome.rb +1 -8
- data/lib/tzinfo/definitions/Africa/Timbuktu.rb +1 -1
- data/lib/tzinfo/definitions/America/Metlakatla.rb +1 -2
- data/lib/tzinfo/definitions/Antarctica/Casey.rb +1 -1
- data/lib/tzinfo/definitions/Antarctica/Macquarie.rb +2 -2
- data/lib/tzinfo/definitions/Asia/Chita.rb +85 -0
- data/lib/tzinfo/definitions/Asia/Chongqing.rb +1 -21
- data/lib/tzinfo/definitions/Asia/Chungking.rb +1 -1
- data/lib/tzinfo/definitions/Asia/Harbin.rb +1 -25
- data/lib/tzinfo/definitions/Asia/Irkutsk.rb +5 -4
- data/lib/tzinfo/definitions/Asia/Jayapura.rb +1 -1
- data/lib/tzinfo/definitions/Asia/Kashgar.rb +1 -23
- data/lib/tzinfo/definitions/Asia/Khandyga.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Krasnoyarsk.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Magadan.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Novokuznetsk.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Novosibirsk.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Omsk.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Pyongyang.rb +8 -4
- data/lib/tzinfo/definitions/Asia/Riyadh.rb +1 -1
- data/lib/tzinfo/definitions/Asia/Sakhalin.rb +3 -2
- data/lib/tzinfo/definitions/Asia/Seoul.rb +16 -12
- data/lib/tzinfo/definitions/Asia/Shanghai.rb +2 -2
- data/lib/tzinfo/definitions/Asia/Srednekolymsk.rb +85 -0
- data/lib/tzinfo/definitions/Asia/Taipei.rb +44 -42
- data/lib/tzinfo/definitions/Asia/Tashkent.rb +2 -2
- data/lib/tzinfo/definitions/Asia/Tbilisi.rb +4 -4
- data/lib/tzinfo/definitions/Asia/Tokyo.rb +2 -2
- data/lib/tzinfo/definitions/Asia/Urumqi.rb +1 -16
- data/lib/tzinfo/definitions/Asia/Ust__m__Nera.rb +2 -0
- data/lib/tzinfo/definitions/Asia/Vladivostok.rb +3 -2
- data/lib/tzinfo/definitions/Asia/Yakutsk.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Yekaterinburg.rb +3 -2
- data/lib/tzinfo/definitions/Atlantic/St_Helena.rb +1 -8
- data/lib/tzinfo/definitions/Australia/Adelaide.rb +3 -3
- data/lib/tzinfo/definitions/Australia/Brisbane.rb +2 -2
- data/lib/tzinfo/definitions/Australia/Broken_Hill.rb +4 -4
- data/lib/tzinfo/definitions/Australia/Currie.rb +2 -2
- data/lib/tzinfo/definitions/Australia/Darwin.rb +3 -3
- data/lib/tzinfo/definitions/Australia/Eucla.rb +2 -2
- data/lib/tzinfo/definitions/Australia/Hobart.rb +2 -2
- data/lib/tzinfo/definitions/Australia/Lindeman.rb +2 -2
- data/lib/tzinfo/definitions/Australia/Lord_Howe.rb +3 -3
- data/lib/tzinfo/definitions/Australia/Melbourne.rb +2 -2
- data/lib/tzinfo/definitions/Australia/Perth.rb +2 -2
- data/lib/tzinfo/definitions/Australia/Sydney.rb +2 -2
- data/lib/tzinfo/definitions/Europe/Budapest.rb +4 -6
- data/lib/tzinfo/definitions/Europe/Helsinki.rb +5 -5
- data/lib/tzinfo/definitions/Europe/Kaliningrad.rb +1 -0
- data/lib/tzinfo/definitions/Europe/Moscow.rb +14 -13
- data/lib/tzinfo/definitions/Europe/Riga.rb +9 -9
- data/lib/tzinfo/definitions/Europe/Samara.rb +26 -25
- data/lib/tzinfo/definitions/Europe/Simferopol.rb +1 -0
- data/lib/tzinfo/definitions/Europe/Volgograd.rb +43 -39
- data/lib/tzinfo/definitions/Pacific/Apia.rb +4 -4
- data/lib/tzinfo/definitions/Pacific/Chatham.rb +157 -155
- data/lib/tzinfo/definitions/Pacific/Pago_Pago.rb +5 -7
- data/lib/tzinfo/indexes/countries.rb +14 -15
- data/lib/tzinfo/indexes/timezones.rb +15 -13
- data/test/tc_timezone_melbourne.rb +31 -31
- data/tzinfo.gemspec +1 -1
- metadata +6 -4
@@ -171,7 +171,7 @@ module TZInfo
|
|
171
171
|
c.timezone 'America/Thunder_Bay', 2903, 60, -357, 4, 'Eastern Time - Thunder Bay, Ontario'
|
172
172
|
c.timezone 'America/Iqaluit', 956, 15, -1027, 15, 'Eastern Time - east Nunavut - most locations'
|
173
173
|
c.timezone 'America/Pangnirtung', 992, 15, -986, 15, 'Eastern Time - Pangnirtung, Nunavut'
|
174
|
-
c.timezone 'America/Resolute', 33613, 450, -22759, 240, 'Central
|
174
|
+
c.timezone 'America/Resolute', 33613, 450, -22759, 240, 'Central Time - Resolute, Nunavut'
|
175
175
|
c.timezone 'America/Atikokan', 175531, 3600, -54973, 600, 'Eastern Standard Time - Atikokan, Ontario and Southampton I, Nunavut'
|
176
176
|
c.timezone 'America/Rankin_Inlet', 3769, 60, -331499, 3600, 'Central Time - central Nunavut'
|
177
177
|
c.timezone 'America/Winnipeg', 2993, 60, -1943, 20, 'Central Time - Manitoba & west Ontario'
|
@@ -212,17 +212,14 @@ module TZInfo
|
|
212
212
|
end
|
213
213
|
country 'CL', 'Chile' do |c|
|
214
214
|
c.timezone 'America/Santiago', -669, 20, -212, 3, 'most locations'
|
215
|
-
c.timezone 'Pacific/Easter', -543, 20, -3283, 30, 'Easter Island
|
215
|
+
c.timezone 'Pacific/Easter', -543, 20, -3283, 30, 'Easter Island'
|
216
216
|
end
|
217
217
|
country 'CM', 'Cameroon' do |c|
|
218
218
|
c.timezone 'Africa/Douala', 81, 20, 97, 10
|
219
219
|
end
|
220
220
|
country 'CN', 'China' do |c|
|
221
|
-
c.timezone 'Asia/Shanghai', 937, 30, 1822, 15, '
|
222
|
-
c.timezone 'Asia/
|
223
|
-
c.timezone 'Asia/Chongqing', 887, 30, 1279, 12, 'central China - Sichuan, Yunnan, Guangxi, Shaanxi, Guizhou, etc.'
|
224
|
-
c.timezone 'Asia/Urumqi', 219, 5, 1051, 12, 'most of Tibet & Xinjiang'
|
225
|
-
c.timezone 'Asia/Kashgar', 2369, 60, 4559, 60, 'west Tibet & Xinjiang'
|
221
|
+
c.timezone 'Asia/Shanghai', 937, 30, 1822, 15, 'Beijing Time'
|
222
|
+
c.timezone 'Asia/Urumqi', 219, 5, 1051, 12, 'Xinjiang Time'
|
226
223
|
end
|
227
224
|
country 'CO', 'Colombia' do |c|
|
228
225
|
c.timezone 'America/Bogota', 23, 5, -889, 12
|
@@ -689,24 +686,26 @@ module TZInfo
|
|
689
686
|
end
|
690
687
|
country 'RU', 'Russia' do |c|
|
691
688
|
c.timezone 'Europe/Kaliningrad', 3283, 60, 41, 2, 'Moscow-01 - Kaliningrad'
|
692
|
-
c.timezone 'Europe/Moscow',
|
693
|
-
c.timezone 'Europe/Volgograd', 731, 15, 533, 12, 'Moscow+00 - Caspian Sea'
|
694
|
-
c.timezone 'Europe/Samara', 266, 5, 1003, 20, 'Moscow+00 - Samara, Udmurtia'
|
689
|
+
c.timezone 'Europe/Moscow', 66907, 1200, 8464, 225, 'Moscow+00 - west Russia'
|
695
690
|
c.timezone 'Europe/Simferopol', 899, 20, 341, 10, 'Moscow+00 - Crimea'
|
691
|
+
c.timezone 'Europe/Volgograd', 731, 15, 533, 12, 'Moscow+00 - Caspian Sea'
|
692
|
+
c.timezone 'Europe/Samara', 266, 5, 1003, 20, 'Moscow+00 (Moscow+01 after 2014-10-26) - Samara, Udmurtia'
|
696
693
|
c.timezone 'Asia/Yekaterinburg', 1137, 20, 303, 5, 'Moscow+02 - Urals'
|
697
694
|
c.timezone 'Asia/Omsk', 55, 1, 367, 5, 'Moscow+03 - west Siberia'
|
698
695
|
c.timezone 'Asia/Novosibirsk', 1651, 30, 995, 12, 'Moscow+03 - Novosibirsk'
|
699
|
-
c.timezone 'Asia/Novokuznetsk', 215, 4, 5227, 60, 'Moscow+03 -
|
696
|
+
c.timezone 'Asia/Novokuznetsk', 215, 4, 5227, 60, 'Moscow+03 (Moscow+04 after 2014-10-26) - Kemerovo'
|
700
697
|
c.timezone 'Asia/Krasnoyarsk', 3361, 60, 557, 6, 'Moscow+04 - Yenisei River'
|
701
698
|
c.timezone 'Asia/Irkutsk', 784, 15, 313, 3, 'Moscow+05 - Lake Baikal'
|
699
|
+
c.timezone 'Asia/Chita', 1041, 20, 1702, 15, 'Moscow+06 (Moscow+05 after 2014-10-26) - Zabaykalsky'
|
702
700
|
c.timezone 'Asia/Yakutsk', 62, 1, 389, 3, 'Moscow+06 - Lena River'
|
703
701
|
c.timezone 'Asia/Khandyga', 225563, 3600, 243997, 1800, 'Moscow+06 - Tomponsky, Ust-Maysky'
|
704
702
|
c.timezone 'Asia/Vladivostok', 259, 6, 1979, 15, 'Moscow+07 - Amur River'
|
705
703
|
c.timezone 'Asia/Sakhalin', 1409, 30, 1427, 10, 'Moscow+07 - Sakhalin Island'
|
706
704
|
c.timezone 'Asia/Ust-Nera', 232417, 3600, 10742, 75, 'Moscow+07 - Oymyakonsky'
|
707
|
-
c.timezone 'Asia/Magadan', 1787, 30, 754, 5, 'Moscow+08 - Magadan'
|
708
|
-
c.timezone 'Asia/
|
709
|
-
c.timezone 'Asia/
|
705
|
+
c.timezone 'Asia/Magadan', 1787, 30, 754, 5, 'Moscow+08 (Moscow+07 after 2014-10-26) - Magadan'
|
706
|
+
c.timezone 'Asia/Srednekolymsk', 1012, 15, 9223, 60, 'Moscow+08 - E Sakha, N Kuril Is'
|
707
|
+
c.timezone 'Asia/Kamchatka', 3181, 60, 3173, 20, 'Moscow+08 (Moscow+09 after 2014-10-26) - Kamchatka'
|
708
|
+
c.timezone 'Asia/Anadyr', 259, 4, 10649, 60, 'Moscow+08 (Moscow+09 after 2014-10-26) - Bering Sea'
|
710
709
|
end
|
711
710
|
country 'RW', 'Rwanda' do |c|
|
712
711
|
c.timezone 'Africa/Kigali', -39, 20, 451, 15
|
@@ -857,13 +856,13 @@ module TZInfo
|
|
857
856
|
c.timezone 'America/Boise', 157009, 3600, -46481, 400, 'Mountain Time - south Idaho & east Oregon'
|
858
857
|
c.timezone 'America/Phoenix', 20069, 600, -16811, 150, 'Mountain Standard Time - Arizona (except Navajo)'
|
859
858
|
c.timezone 'America/Los_Angeles', 30647, 900, -212837, 1800, 'Pacific Time'
|
859
|
+
c.timezone 'America/Metlakatla', 198457, 3600, -18947, 144, 'Pacific Standard Time - Annette Island, Alaska'
|
860
860
|
c.timezone 'America/Anchorage', 44077, 720, -539641, 3600, 'Alaska Time'
|
861
861
|
c.timezone 'America/Juneau', 209887, 3600, -483911, 3600, 'Alaska Time - Alaska panhandle'
|
862
862
|
c.timezone 'America/Sitka', 41167, 720, -487087, 3600, 'Alaska Time - southeast Alaska panhandle'
|
863
863
|
c.timezone 'America/Yakutat', 214369, 3600, -251509, 1800, 'Alaska Time - Alaska panhandle neck'
|
864
864
|
c.timezone 'America/Nome', 58051, 900, -595463, 3600, 'Alaska Time - west Alaska'
|
865
865
|
c.timezone 'America/Adak', 1297, 25, -635969, 3600, 'Aleutian Islands'
|
866
|
-
c.timezone 'America/Metlakatla', 198457, 3600, -18947, 144, 'Metlakatla Time - Annette Island'
|
867
866
|
c.timezone 'Pacific/Honolulu', 15341, 720, -18943, 120, 'Hawaii'
|
868
867
|
end
|
869
868
|
country 'UY', 'Uruguay' do |c|
|
@@ -9,9 +9,9 @@ module TZInfo
|
|
9
9
|
timezone 'Africa/Algiers'
|
10
10
|
timezone 'Africa/Asmara'
|
11
11
|
linked_timezone 'Africa/Asmera'
|
12
|
-
|
12
|
+
linked_timezone 'Africa/Bamako'
|
13
13
|
timezone 'Africa/Bangui'
|
14
|
-
|
14
|
+
linked_timezone 'Africa/Banjul'
|
15
15
|
timezone 'Africa/Bissau'
|
16
16
|
timezone 'Africa/Blantyre'
|
17
17
|
timezone 'Africa/Brazzaville'
|
@@ -19,13 +19,13 @@ module TZInfo
|
|
19
19
|
timezone 'Africa/Cairo'
|
20
20
|
timezone 'Africa/Casablanca'
|
21
21
|
timezone 'Africa/Ceuta'
|
22
|
-
|
23
|
-
|
22
|
+
linked_timezone 'Africa/Conakry'
|
23
|
+
linked_timezone 'Africa/Dakar'
|
24
24
|
timezone 'Africa/Dar_es_Salaam'
|
25
25
|
timezone 'Africa/Djibouti'
|
26
26
|
timezone 'Africa/Douala'
|
27
27
|
timezone 'Africa/El_Aaiun'
|
28
|
-
|
28
|
+
linked_timezone 'Africa/Freetown'
|
29
29
|
timezone 'Africa/Gaborone'
|
30
30
|
timezone 'Africa/Harare'
|
31
31
|
timezone 'Africa/Johannesburg'
|
@@ -36,7 +36,7 @@ module TZInfo
|
|
36
36
|
timezone 'Africa/Kinshasa'
|
37
37
|
timezone 'Africa/Lagos'
|
38
38
|
timezone 'Africa/Libreville'
|
39
|
-
|
39
|
+
linked_timezone 'Africa/Lome'
|
40
40
|
timezone 'Africa/Luanda'
|
41
41
|
timezone 'Africa/Lubumbashi'
|
42
42
|
timezone 'Africa/Lusaka'
|
@@ -49,10 +49,10 @@ module TZInfo
|
|
49
49
|
timezone 'Africa/Nairobi'
|
50
50
|
timezone 'Africa/Ndjamena'
|
51
51
|
timezone 'Africa/Niamey'
|
52
|
-
|
53
|
-
|
52
|
+
linked_timezone 'Africa/Nouakchott'
|
53
|
+
linked_timezone 'Africa/Ouagadougou'
|
54
54
|
timezone 'Africa/Porto-Novo'
|
55
|
-
|
55
|
+
linked_timezone 'Africa/Sao_Tome'
|
56
56
|
linked_timezone 'Africa/Timbuktu'
|
57
57
|
timezone 'Africa/Tripoli'
|
58
58
|
timezone 'Africa/Tunis'
|
@@ -250,8 +250,9 @@ module TZInfo
|
|
250
250
|
timezone 'Asia/Bishkek'
|
251
251
|
timezone 'Asia/Brunei'
|
252
252
|
linked_timezone 'Asia/Calcutta'
|
253
|
+
timezone 'Asia/Chita'
|
253
254
|
timezone 'Asia/Choibalsan'
|
254
|
-
|
255
|
+
linked_timezone 'Asia/Chongqing'
|
255
256
|
linked_timezone 'Asia/Chungking'
|
256
257
|
timezone 'Asia/Colombo'
|
257
258
|
linked_timezone 'Asia/Dacca'
|
@@ -261,7 +262,7 @@ module TZInfo
|
|
261
262
|
timezone 'Asia/Dubai'
|
262
263
|
timezone 'Asia/Dushanbe'
|
263
264
|
timezone 'Asia/Gaza'
|
264
|
-
|
265
|
+
linked_timezone 'Asia/Harbin'
|
265
266
|
timezone 'Asia/Hebron'
|
266
267
|
timezone 'Asia/Ho_Chi_Minh'
|
267
268
|
timezone 'Asia/Hong_Kong'
|
@@ -274,7 +275,7 @@ module TZInfo
|
|
274
275
|
timezone 'Asia/Kabul'
|
275
276
|
timezone 'Asia/Kamchatka'
|
276
277
|
timezone 'Asia/Karachi'
|
277
|
-
|
278
|
+
linked_timezone 'Asia/Kashgar'
|
278
279
|
timezone 'Asia/Kathmandu'
|
279
280
|
linked_timezone 'Asia/Katmandu'
|
280
281
|
timezone 'Asia/Khandyga'
|
@@ -307,6 +308,7 @@ module TZInfo
|
|
307
308
|
timezone 'Asia/Seoul'
|
308
309
|
timezone 'Asia/Shanghai'
|
309
310
|
timezone 'Asia/Singapore'
|
311
|
+
timezone 'Asia/Srednekolymsk'
|
310
312
|
timezone 'Asia/Taipei'
|
311
313
|
timezone 'Asia/Tashkent'
|
312
314
|
timezone 'Asia/Tbilisi'
|
@@ -335,7 +337,7 @@ module TZInfo
|
|
335
337
|
timezone 'Atlantic/Madeira'
|
336
338
|
timezone 'Atlantic/Reykjavik'
|
337
339
|
timezone 'Atlantic/South_Georgia'
|
338
|
-
|
340
|
+
linked_timezone 'Atlantic/St_Helena'
|
339
341
|
timezone 'Atlantic/Stanley'
|
340
342
|
linked_timezone 'Australia/ACT'
|
341
343
|
timezone 'Australia/Adelaide'
|
@@ -6,10 +6,10 @@ include TZInfo
|
|
6
6
|
|
7
7
|
class TCTimezoneMelbourne < Test::Unit::TestCase
|
8
8
|
def test_2004
|
9
|
-
#Australia/Melbourne Sat Mar 27 15:59:59 2004 UTC = Sun Mar 28 02:59:59 2004
|
10
|
-
#Australia/Melbourne Sat Mar 27 16:00:00 2004 UTC = Sun Mar 28 02:00:00 2004
|
11
|
-
#Australia/Melbourne Sat Oct 30 15:59:59 2004 UTC = Sun Oct 31 01:59:59 2004
|
12
|
-
#Australia/Melbourne Sat Oct 30 16:00:00 2004 UTC = Sun Oct 31 03:00:00 2004
|
9
|
+
#Australia/Melbourne Sat Mar 27 15:59:59 2004 UTC = Sun Mar 28 02:59:59 2004 AEDT isdst=1 gmtoff=39600
|
10
|
+
#Australia/Melbourne Sat Mar 27 16:00:00 2004 UTC = Sun Mar 28 02:00:00 2004 AEST isdst=0 gmtoff=36000
|
11
|
+
#Australia/Melbourne Sat Oct 30 15:59:59 2004 UTC = Sun Oct 31 01:59:59 2004 AEST isdst=0 gmtoff=36000
|
12
|
+
#Australia/Melbourne Sat Oct 30 16:00:00 2004 UTC = Sun Oct 31 03:00:00 2004 AEDT isdst=1 gmtoff=39600
|
13
13
|
|
14
14
|
tz = Timezone.get('Australia/Melbourne')
|
15
15
|
assert_equal(DateTime.new(2004,3,28,2,59,59), tz.utc_to_local(DateTime.new(2004,3,27,15,59,59)))
|
@@ -27,17 +27,17 @@ class TCTimezoneMelbourne < Test::Unit::TestCase
|
|
27
27
|
assert_raises(PeriodNotFound) { tz.local_to_utc(DateTime.new(2004,10,31,2,0,0)) }
|
28
28
|
assert_raises(AmbiguousTime) { tz.local_to_utc(DateTime.new(2004,3,28,2,0,0)) }
|
29
29
|
|
30
|
-
assert_equal(:
|
31
|
-
assert_equal(:
|
32
|
-
assert_equal(:
|
33
|
-
assert_equal(:
|
30
|
+
assert_equal(:AEDT, tz.period_for_utc(DateTime.new(2004,3,27,15,59,59)).zone_identifier)
|
31
|
+
assert_equal(:AEST, tz.period_for_utc(DateTime.new(2004,3,27,16,0,0)).zone_identifier)
|
32
|
+
assert_equal(:AEST, tz.period_for_utc(DateTime.new(2004,10,30,15,59,59)).zone_identifier)
|
33
|
+
assert_equal(:AEDT, tz.period_for_utc(DateTime.new(2004,10,30,16,0,0)).zone_identifier)
|
34
34
|
|
35
|
-
assert_equal(:
|
36
|
-
assert_equal(:
|
37
|
-
assert_equal(:
|
38
|
-
assert_equal(:
|
39
|
-
assert_equal(:
|
40
|
-
assert_equal(:
|
35
|
+
assert_equal(:AEDT, tz.period_for_local(DateTime.new(2004,3,28,2,59,59), true).zone_identifier)
|
36
|
+
assert_equal(:AEST, tz.period_for_local(DateTime.new(2004,3,28,2,59,59), false).zone_identifier)
|
37
|
+
assert_equal(:AEDT, tz.period_for_local(DateTime.new(2004,3,28,2,0,0), true).zone_identifier)
|
38
|
+
assert_equal(:AEST, tz.period_for_local(DateTime.new(2004,3,28,2,0,0), false).zone_identifier)
|
39
|
+
assert_equal(:AEST, tz.period_for_local(DateTime.new(2004,10,31,1,59,59)).zone_identifier)
|
40
|
+
assert_equal(:AEDT, tz.period_for_local(DateTime.new(2004,10,31,3,0,0)).zone_identifier)
|
41
41
|
|
42
42
|
assert_equal(39600, tz.period_for_utc(DateTime.new(2004,3,27,15,59,59)).utc_total_offset)
|
43
43
|
assert_equal(36000, tz.period_for_utc(DateTime.new(2004,3,27,16,0,0)).utc_total_offset)
|
@@ -53,10 +53,10 @@ class TCTimezoneMelbourne < Test::Unit::TestCase
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def test_1942
|
56
|
-
#Australia/Melbourne Sat Mar 28 14:59:59 1942 UTC = Sun Mar 29 01:59:59 1942
|
57
|
-
#Australia/Melbourne Sat Mar 28 15:00:00 1942 UTC = Sun Mar 29 01:00:00 1942
|
58
|
-
#Australia/Melbourne Sat Sep 26 15:59:59 1942 UTC = Sun Sep 27 01:59:59 1942
|
59
|
-
#Australia/Melbourne Sat Sep 26 16:00:00 1942 UTC = Sun Sep 27 03:00:00 1942
|
56
|
+
#Australia/Melbourne Sat Mar 28 14:59:59 1942 UTC = Sun Mar 29 01:59:59 1942 AEDT isdst=1 gmtoff=39600
|
57
|
+
#Australia/Melbourne Sat Mar 28 15:00:00 1942 UTC = Sun Mar 29 01:00:00 1942 AEST isdst=0 gmtoff=36000
|
58
|
+
#Australia/Melbourne Sat Sep 26 15:59:59 1942 UTC = Sun Sep 27 01:59:59 1942 AEST isdst=0 gmtoff=36000
|
59
|
+
#Australia/Melbourne Sat Sep 26 16:00:00 1942 UTC = Sun Sep 27 03:00:00 1942 AEDT isdst=1 gmtoff=39600
|
60
60
|
|
61
61
|
tz = Timezone.get('Australia/Melbourne')
|
62
62
|
assert_equal(DateTime.new(1942,3,29,1,59,59), tz.utc_to_local(DateTime.new(1942,3,28,14,59,59)))
|
@@ -74,17 +74,17 @@ class TCTimezoneMelbourne < Test::Unit::TestCase
|
|
74
74
|
assert_raises(PeriodNotFound) { tz.local_to_utc(DateTime.new(1942,9,27,2,0,0)) }
|
75
75
|
assert_raises(AmbiguousTime) { tz.local_to_utc(DateTime.new(1942,3,29,1,0,0)) }
|
76
76
|
|
77
|
-
assert_equal(:
|
78
|
-
assert_equal(:
|
79
|
-
assert_equal(:
|
80
|
-
assert_equal(:
|
77
|
+
assert_equal(:AEDT, tz.period_for_utc(DateTime.new(1942,3,28,14,59,59)).zone_identifier)
|
78
|
+
assert_equal(:AEST, tz.period_for_utc(DateTime.new(1942,3,28,15,0,0)).zone_identifier)
|
79
|
+
assert_equal(:AEST, tz.period_for_utc(DateTime.new(1942,9,26,15,59,59)).zone_identifier)
|
80
|
+
assert_equal(:AEDT, tz.period_for_utc(DateTime.new(1942,9,26,16,0,0)).zone_identifier)
|
81
81
|
|
82
|
-
assert_equal(:
|
83
|
-
assert_equal(:
|
84
|
-
assert_equal(:
|
85
|
-
assert_equal(:
|
86
|
-
assert_equal(:
|
87
|
-
assert_equal(:
|
82
|
+
assert_equal(:AEDT, tz.period_for_local(DateTime.new(1942,3,29,1,59,59), true).zone_identifier)
|
83
|
+
assert_equal(:AEST, tz.period_for_local(DateTime.new(1942,3,29,1,59,59), false).zone_identifier)
|
84
|
+
assert_equal(:AEDT, tz.period_for_local(DateTime.new(1942,3,29,1,0,0), true).zone_identifier)
|
85
|
+
assert_equal(:AEST, tz.period_for_local(DateTime.new(1942,3,29,1,0,0), false).zone_identifier)
|
86
|
+
assert_equal(:AEST, tz.period_for_local(DateTime.new(1942,9,27,1,59,59)).zone_identifier)
|
87
|
+
assert_equal(:AEDT, tz.period_for_local(DateTime.new(1942,9,27,3,0,0)).zone_identifier)
|
88
88
|
|
89
89
|
assert_equal(39600, tz.period_for_utc(DateTime.new(1942,3,28,14,59,59)).utc_total_offset)
|
90
90
|
assert_equal(36000, tz.period_for_utc(DateTime.new(1942,3,28,15,0,0)).utc_total_offset)
|
@@ -100,8 +100,8 @@ class TCTimezoneMelbourne < Test::Unit::TestCase
|
|
100
100
|
end
|
101
101
|
|
102
102
|
def test_time_boundary
|
103
|
-
#Australia/Melbourne Sat Mar 25 15:00:00 1944 UTC = Sun Mar 26 01:00:00 1944
|
104
|
-
#Australia/Melbourne Sat Oct 30 15:59:59 1971 UTC = Sun Oct 31 01:59:59 1971
|
103
|
+
#Australia/Melbourne Sat Mar 25 15:00:00 1944 UTC = Sun Mar 26 01:00:00 1944 AEST isdst=0 gmtoff=36000
|
104
|
+
#Australia/Melbourne Sat Oct 30 15:59:59 1971 UTC = Sun Oct 31 01:59:59 1971 AEST isdst=0 gmtoff=36000
|
105
105
|
|
106
106
|
tz = Timezone.get('Australia/Melbourne')
|
107
107
|
assert_equal(DateTime.new(1970,1,1,10,0,0), tz.utc_to_local(DateTime.new(1970,1,1,0,0,0)))
|
@@ -111,4 +111,4 @@ class TCTimezoneMelbourne < Test::Unit::TestCase
|
|
111
111
|
assert_equal(36000, tz.utc_to_local(0))
|
112
112
|
assert_equal(0, tz.local_to_utc(36000))
|
113
113
|
end
|
114
|
-
end
|
114
|
+
end
|
data/tzinfo.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tzinfo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 65
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
9
|
+
- 41
|
10
10
|
segments_generated: true
|
11
|
-
version: 0.3.
|
11
|
+
version: 0.3.41
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Philip Ross
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2014-07
|
19
|
+
date: 2014-08-07 16:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies: []
|
22
22
|
|
@@ -568,6 +568,7 @@ files:
|
|
568
568
|
- lib/tzinfo/definitions/Asia/Riyadh.rb
|
569
569
|
- lib/tzinfo/definitions/Asia/Vientiane.rb
|
570
570
|
- lib/tzinfo/definitions/Asia/Brunei.rb
|
571
|
+
- lib/tzinfo/definitions/Asia/Srednekolymsk.rb
|
571
572
|
- lib/tzinfo/definitions/Asia/Yerevan.rb
|
572
573
|
- lib/tzinfo/definitions/Asia/Khandyga.rb
|
573
574
|
- lib/tzinfo/definitions/Asia/Oral.rb
|
@@ -585,6 +586,7 @@ files:
|
|
585
586
|
- lib/tzinfo/definitions/Asia/Yekaterinburg.rb
|
586
587
|
- lib/tzinfo/definitions/Asia/Magadan.rb
|
587
588
|
- lib/tzinfo/definitions/Asia/Ashgabat.rb
|
589
|
+
- lib/tzinfo/definitions/Asia/Chita.rb
|
588
590
|
- lib/tzinfo/definitions/Asia/Dhaka.rb
|
589
591
|
- lib/tzinfo/definitions/Asia/Manila.rb
|
590
592
|
- lib/tzinfo/definitions/Asia/Seoul.rb
|