test/timezone/test_zone.rb in timezone-1.3.10 vs test/timezone/test_zone.rb in timezone-1.3.11
- old
+ new
@@ -128,15 +128,15 @@
assert_equal local.to_i, zone('America/Los_Angeles').time(utc).to_i
end
# http://www.timeanddate.com/worldclock/clockchange.html?n=2364&year=1940
def test_historical_time_change_in_hebron
- local = Time.strptime('1940-05-31T23:59:59 UTC', '%Y-%m-%dT%H:%M:%S %Z')
- utc = Time.strptime('1940-05-31T21:59:59 UTC', '%Y-%m-%dT%H:%M:%S %Z')
+ local = Time.strptime('1940-06-01T01:59:59 UTC', '%Y-%m-%dT%H:%M:%S %Z')
+ utc = Time.strptime('1940-05-31T23:59:59 UTC', '%Y-%m-%dT%H:%M:%S %Z')
assert_equal local.to_i, zone('Asia/Hebron').time(utc).to_i
- local = Time.strptime('1940-06-01T01:00:00 UTC', '%Y-%m-%dT%H:%M:%S %Z')
- utc = Time.strptime('1940-05-31T22:00:00 UTC', '%Y-%m-%dT%H:%M:%S %Z')
+ local = Time.strptime('1940-06-01T03:00:00 UTC', '%Y-%m-%dT%H:%M:%S %Z')
+ utc = Time.strptime('1940-06-01T00:00:00 UTC', '%Y-%m-%dT%H:%M:%S %Z')
assert_equal local.to_i, zone('Asia/Hebron').time(utc).to_i
end
def test_half_hour_timezone
utc = Time.utc(2011, 1, 4, 3, 51, 29)