8784: Fix test for latest firefox.
[arvados.git] / services / api / config / initializers / time_format.rb
index d476781e55ca8638186d2cbe5ed2cc50e5fdd8cc..b2a2448a8e2b2f7b664c2cf32f43d84afa1afd97 100644 (file)
@@ -1,4 +1,12 @@
 class ActiveSupport::TimeWithZone
+  remove_method :as_json
+  def as_json *args
+    strftime "%Y-%m-%dT%H:%M:%S.%NZ"
+  end
+end
+
+class Time
+  remove_method :as_json
   def as_json *args
     strftime "%Y-%m-%dT%H:%M:%S.%NZ"
   end