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

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

Instance Method Summary collapse

Instance Method Details

#default_timezoneObject



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

def default_timezone
  ActiveRecord::Base.default_timezone
end

#is_utc?Boolean

Returns:



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

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