Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

12 lines (10 sloc) 221 Bytes
module Types
class DateTimeType < Types::BaseScalar
def self.coerce_input(value, _context)
Time.zone.parse(value)
end
def self.coerce_result(value, _context)
value.utc.iso8601
end
end
end
You can’t perform that action at this time.