class ActiveRecord::ConnectionAdapters::PostgreSQL::OID::TimestampWithTimeZone

:nodoc:
:nodoc:

def cast_value(value)

def cast_value(value)
  return if value.blank?
  time = super
  return time if time.is_a?(ActiveSupport::TimeWithZone)
  # While in UTC mode, the PG gem may not return times back in "UTC" even if they were provided to Postgres in UTC.
  # We prefer times always in UTC, so here we convert back.
  if is_utc?
    time.getutc
  else
    time.getlocal
  end
end

def type

:nodoc:
:nodoc:
def type
  real_type_unless_aliased(:timestamptz)
end