test/test_parsing.rb in chronic-0.10.1 vs test/test_parsing.rb in chronic-0.10.2
- old
+ new
@@ -178,9 +178,12 @@
assert_equal 1309727495, time.to_i
time = parse_now("2011-07-03 22:11:35 +01:00")
assert_equal 1309727495, time.to_i
+ time = parse_now("2011-07-03 16:11:35 -05:00")
+ assert_equal 1309727495, time.to_i
+
time = parse_now("2011-07-03 21:11:35 UTC")
assert_equal 1309727495, time.to_i
time = parse_now("2011-07-03 21:11:35.362 UTC")
assert_in_delta 1309727495.362, time.to_f, 0.001