-
-
Save cheald/6af63b6969df3a3a1dec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_zone_0000 | |
assert_equal(true, Time.parse("2000-01-01T00:00:00Z").utc?) | |
assert_equal(true, Time.parse("2000-01-01T00:00:00-00:00").utc?) | |
assert_equal(false, Time.parse("2000-01-01T00:00:00+00:00").utc?) | |
assert_equal(false, Time.parse("Sat, 01 Jan 2000 00:00:00 GMT").utc?) | |
assert_equal(true, Time.parse("Sat, 01 Jan 2000 00:00:00 -0000").utc?) | |
assert_equal(false, Time.parse("Sat, 01 Jan 2000 00:00:00 +0000").utc?) | |
assert_equal(false, Time.rfc2822("Sat, 01 Jan 2000 00:00:00 GMT").utc?) | |
assert_equal(true, Time.rfc2822("Sat, 01 Jan 2000 00:00:00 -0000").utc?) | |
assert_equal(false, Time.rfc2822("Sat, 01 Jan 2000 00:00:00 +0000").utc?) | |
assert_equal(true, Time.rfc2822("Sat, 01 Jan 2000 00:00:00 UTC").utc?) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment