require 'time' module Koine module Attributes module Adapter class Time < Base def coerce(value) secure do next value if value.is_a?(::Time) ::Time.parse(value) end end end end end end