cast_to_time(value)
private
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 582
def cast_to_time(value)
return value unless value.class == DateTime
v = value
time_array = [v.year, v.month, v.day, v.hour, v.min, v.sec, v.usec]
Time.send(Base.default_timezone, *time_array) rescue nil
end