Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow for non-UTC TimeZone offset of 0.

  • Loading branch information...
commit 47b6e48630c375d27bd4739850753d56ba421ea6 1 parent 3970fad
@gkellogg gkellogg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rdf/model/literal/time.rb
View
2  lib/rdf/model/literal/time.rb
@@ -68,7 +68,7 @@ def to_s
sub(/\+00:00|UTC|GMT/, 'Z')
else
# Ruby 1.8 doesn't do timezone's properly, use utc_offset
- off = @object.utc? ? "Z" : ("%0.2d:00" % (@object.utc_offset/3600))
+ off = @object.utc_offset == 0 ? "Z" : ("%0.2d:00" % (@object.utc_offset/3600))
@object.strftime("%H:%M:%S#{off}")
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.