module Sequel::NamedTimezones

  1. lib/sequel/extensions/named_timezones.rb

Methods

Public Instance

  1. tzinfo_disambiguator

Attributes

tzinfo_disambiguator [RW]

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}