4759: Use ISO 8601 timestamps with fractional seconds in API responses.
authorTom Clegg <tom@curoverse.com>
Mon, 16 Feb 2015 19:00:09 +0000 (14:00 -0500)
committerTom Clegg <tom@curoverse.com>
Mon, 16 Feb 2015 19:00:09 +0000 (14:00 -0500)
services/api/config/initializers/time_format.rb [new file with mode: 0644]

diff --git a/services/api/config/initializers/time_format.rb b/services/api/config/initializers/time_format.rb
new file mode 100644 (file)
index 0000000..ca67b19
--- /dev/null
@@ -0,0 +1,5 @@
+class ActiveSupport::TimeWithZone
+  def as_json
+    strftime "%Y-%m-%dT%H:%M:%S.%NZ"
+  end
+end