Module: Sequel::NamedTimezones
- Included in:
- Sequel
- Defined in:
- lib/sequel/extensions/named_timezones.rb
Defined Under Namespace
Modules: DatabaseMethods
Instance Attribute Summary collapse
-
#tzinfo_disambiguator ⇒ Object
Handles TZInfo::AmbiguousTime exceptions automatically by providing a proc called with both the datetime value being converted as well as the array of TZInfo::TimezonePeriod results.
Instance Attribute Details
#tzinfo_disambiguator ⇒ Object
Handles TZInfo::AmbiguousTime exceptions automatically by providing a proc called with both the datetime value being converted as well as the array of TZInfo::TimezonePeriod results. Example:
Sequel.tzinfo_disambiguator = proc{|datetime, periods| periods.first}
58 59 60 |
# File 'lib/sequel/extensions/named_timezones.rb', line 58 def tzinfo_disambiguator @tzinfo_disambiguator end |