lib/couchrest/monkeypatches.rb in samflores-couchrest-0.12.3 vs lib/couchrest/monkeypatches.rb in samflores-couchrest-0.12.3.2

- old
+ new

@@ -6,10 +6,10 @@ # order is preserved. (There's no longer a need to set <tt>ENV['TZ'] = 'UTC'</tt> # in your application.) def to_json(options = nil) u = self.utc - %("#{u.strftime("%Y/%m/%d %H:%M:%S +0000")}") + %("#{u.strftime("%Y/%m/%d %H:%M:%S.#{u.usec} +0000")}") end # Decodes the JSON time format to a UTC time. # Based on Time.parse from ActiveSupport. ActiveSupport's version # is more complete, returning a time in your current timezone, \ No newline at end of file