Module | ActiveSupport::CoreExtensions::DateTime::Calculations::ClassMethods |
In: |
vendor/rails/activesupport/lib/active_support/core_ext/date_time/calculations.rb
|
DateTimes aren‘t aware of DST rules, so use a consistent non-DST offset when creating a DateTime with an offset in the local zone
# File vendor/rails/activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 14 14: def local_offset 15: ::Time.local(2007).utc_offset.to_r / 86400 16: end