fixup json time format

This commit is contained in:
Chris Anderson 2009-01-13 20:08:58 -08:00
parent cc5cf62cc4
commit a4144af72d
2 changed files with 1 additions and 35 deletions

View file

@ -8,7 +8,7 @@ class Time
def to_json(options = nil)
u = self.utc
%("#{u.strftime("%Y/%m/%d %H:%M:%S.#{u.usec} +0000")}")
%("#{u.strftime("%Y/%m/%d %H:%M:%S +0000")}")
end
# Decodes the JSON time format to a UTC time.