12960: Fix test due to slightly different serialization from jsonb
[arvados.git] / services / api / config / initializers / time_format.rb
index ee7c91fffdffb10176ad3f3d47b26c83f9816e7b..3d690930ae18a1a4d1956f0872b37eec77d9d228 100644 (file)
@@ -1,10 +1,16 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 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