mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-11 03:37:02 +02:00
schedule today if at: time not passed
This commit is contained in:
@@ -48,6 +48,7 @@ module Crono
|
||||
def initial_day
|
||||
return Time.now unless @on
|
||||
day = Time.now.beginning_of_week.advance(days: @on)
|
||||
day = day.change(time_atts)
|
||||
return day if day.future?
|
||||
@period.from_now.beginning_of_week.advance(days: @on)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user