Module: Sidetiq::Timezone::Schedule::ClassMethods
- Included in:
- Schedule
- Defined in:
- lib/sidetiq/timezone/schedule.rb
Overview
Makes start_time adopt the application time zone.
Instance Method Summary collapse
Instance Method Details
#start_time ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/sidetiq/timezone/schedule.rb', line 8 def start_time start_time = super if time_zone = Sidetiq.clock.time_zone time_zone.local(start_time.year, start_time.month, start_time.day) else start_time end end |