From 1517622d53fb968fd1268c860d7d02af885ff22b Mon Sep 17 00:00:00 2001 From: Geoff Buesing Date: Wed, 18 Mar 2009 13:36:22 -0500 Subject: [PATCH] Time#to_json monkeypatch: use Time#getutc instead of #utc, so that self is not modified --- lib/couchrest/monkeypatches.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/couchrest/monkeypatches.rb b/lib/couchrest/monkeypatches.rb index c24f092..60e02b8 100644 --- a/lib/couchrest/monkeypatches.rb +++ b/lib/couchrest/monkeypatches.rb @@ -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