Merge branch '8784-dir-listings'
[arvados.git] / services / api / config / initializers / time_format.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class ActiveSupport::TimeWithZone
6   remove_method :as_json
7   def as_json *args
8     strftime "%Y-%m-%dT%H:%M:%S.%NZ"
9   end
10 end
11
12 class Time
13   remove_method :as_json
14   def as_json *args
15     strftime "%Y-%m-%dT%H:%M:%S.%NZ"
16   end
17 end