schedule today if at: time not passed

This commit is contained in:
Adrian Colyer committed 2016-11-06 15:47:50 +00:00
1 parent 1d9d30ef89
commit 3f9ea8350d
2 files changed
+11

No files matched your search

+1
View File
@@ -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