Time#to_json monkeypatch: use Time#getutc instead of #utc, so that self is not modified
This commit is contained in:
parent
d9417f3915
commit
1517622d53
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class Time
|
|||
# in your application.)
|
||||
|
||||
def to_json(options = nil)
|
||||
u = self.utc
|
||||
u = self.getutc
|
||||
%("#{u.strftime("%Y/%m/%d %H:%M:%S +0000")}")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue