Permalink
Browse files

it's iso8601

  • Loading branch information...
Dhruv Bansal
Dhruv Bansal committed Dec 1, 2012
1 parent 16f1e00 commit a01bd894bfba3b0c9ba759ea2b8c7e5b42dd3ab1
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/wonderdog/timestamp.rb
@@ -31,10 +31,12 @@ def self.receive string
new(t.year, t.month, t.day, t.hour, t.min, t.sec, t.utc_offset)
end
- # Formats the Timestamp according to
- #
+ # Formats the Timestamp according to ISO 8601 rules.
+ #
+ # @param [Hash] options
+ # @return [String]
def to_wire(options={})
- utc.strftime("%Y-%m-%dT%H:%M:%S")
+ utc.iso8601
end
end
end

0 comments on commit a01bd89

Please sign in to comment.