Sha256: 7b38bcc4f058dfe5a546510597e30d4e3ba3874db91a30d580d28942b68b5efe

Contents?: true

Size: 220 Bytes

Versions: 1

Compression:

Stored size: 220 Bytes

Contents

require 'active_support/time_with_zone'

class ActiveSupport::TimeWithZone
  # We want dates to always be in UTC
  def as_json(options = {})
    if utc?
      super
    else
      utc.as_json(options)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stitches-4.1.0RC2 lib/stitches/render_timestamps_in_iso8601_in_json.rb