Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix assumption that the time test is always in -0800 #18

Merged
merged 1 commit into from

2 participants

@domcleal

If you're (un?)fortunate enough not to live in California, the tests fail:

# Running tests:

..............................................expected:
2011-11-16T13:36:08-08:00

got:
2011-11-16T21:36:08+00:00
@cdickmann cdickmann merged commit d06b95b into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 11, 2013
  1. @domcleal
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test_serialization.rb
View
4 test/test_serialization.rb
@@ -287,9 +287,9 @@ def test_datetime
end
def test_time
- obj = Time.at DateTime.new(2011, 11, 16, 13, 36, 8, Rational(-8,24)).strftime("%s").to_i
+ obj = Time.at(DateTime.new(2011, 11, 16, 13, 36, 8, Rational(-8,24)).strftime("%s").to_i).getgm
check <<-EOS, obj, 'xsd:dateTime', false
-<root>2011-11-16T13:36:08-08:00</root>
+<root>2011-11-16T21:36:08Z</root>
EOS
end
Something went wrong with that request. Please try again.