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


9
10
11
# File 'activerecord/lib/active_record/type/internal/timezone.rb', line 9

def default_timezone
  ActiveRecord::Base.default_timezone
end

#is_utc?Boolean

Returns:


5
6
7
# File 'activerecord/lib/active_record/type/internal/timezone.rb', line 5

def is_utc?
  ActiveRecord::Base.default_timezone == :utc
end