Module: ActiveRecord::Type::Internal::Timezone

Included in:
Date, DateTime, Time
Defined in:
activerecord/lib/active_record/type/internal/timezone.rb

Instance Method Summary collapse

Instance Method Details

#default_timezoneObject


11
12
13
# File 'activerecord/lib/active_record/type/internal/timezone.rb', line 11

def default_timezone
  ActiveRecord.default_timezone
end

#is_utc?Boolean

Returns:


7
8
9
# File 'activerecord/lib/active_record/type/internal/timezone.rb', line 7

def is_utc?
  ActiveRecord.default_timezone == :utc
end