fixup json time format
This commit is contained in:
parent
cc5cf62cc4
commit
a4144af72d
2 changed files with 1 additions and 35 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue