Skip to content

Commit

Permalink
Merge pull request vmware-archive#18 from domcleal/flat-earth-society
Browse files Browse the repository at this point in the history
Fix assumption that the time test is always in -0800
  • Loading branch information
cdickmann committed Aug 5, 2013
2 parents a9dcff3 + 8f3827a commit d06b95b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_serialization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d06b95b

Please sign in to comment.