X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/353eb4f4c4fb52e7f2a1c9aaad93e9d6bf0088f4..e838828374ceed5ef6da260939251e86f72b6f27:/services/api/config/initializers/time_format.rb diff --git a/services/api/config/initializers/time_format.rb b/services/api/config/initializers/time_format.rb index ee7c91fffd..78cabc87ac 100644 --- a/services/api/config/initializers/time_format.rb +++ b/services/api/config/initializers/time_format.rb @@ -1,10 +1,18 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + +ActiveSupport::JSON::Encoding.time_precision = 9 + 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