Permalink
Browse files

Merge pull request #18 from domcleal/flat-earth-society

Fix assumption that the time test is always in -0800
  • Loading branch information...
2 parents a9dcff3 + 8f3827a commit d06b95bee70e7c8938c25d3cea7030cc106cd65a @cdickmann cdickmann committed Aug 5, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit d06b95b

Please sign in to comment.