@@ -818,15 +818,15 @@ func (d dailyJob) next(lastRun time.Time) time.Time {
818818 }
819819 firstPass = false
820820
821- startNextDay := time .Date (lastRun .Year (), lastRun .Month (), lastRun .Day ()+ int (d .interval ), 0 , 0 , 0 , lastRun . Nanosecond () , lastRun .Location ())
821+ startNextDay := time .Date (lastRun .Year (), lastRun .Month (), lastRun .Day ()+ int (d .interval ), 0 , 0 , 0 , 0 , lastRun .Location ())
822822 return d .nextDay (startNextDay , firstPass )
823823}
824824
825825func (d dailyJob ) nextDay (lastRun time.Time , firstPass bool ) time.Time {
826826 for _ , at := range d .atTimes {
827827 // sub the at time hour/min/sec onto the lastScheduledRun's values
828828 // to use in checks to see if we've got our next run time
829- atDate := time .Date (lastRun .Year (), lastRun .Month (), lastRun .Day (), at .Hour (), at .Minute (), at .Second (), lastRun . Nanosecond () , lastRun .Location ())
829+ atDate := time .Date (lastRun .Year (), lastRun .Month (), lastRun .Day (), at .Hour (), at .Minute (), at .Second (), 0 , lastRun .Location ())
830830
831831 if firstPass && atDate .After (lastRun ) {
832832 // checking to see if it is after i.e. greater than,
@@ -872,7 +872,7 @@ func (w weeklyJob) nextWeekDayAtTime(lastRun time.Time, firstPass bool) time.Tim
872872 for _ , at := range w .atTimes {
873873 // sub the at time hour/min/sec onto the lastScheduledRun's values
874874 // to use in checks to see if we've got our next run time
875- atDate := time .Date (lastRun .Year (), lastRun .Month (), lastRun .Day ()+ int (weekDayDiff ), at .Hour (), at .Minute (), at .Second (), lastRun . Nanosecond () , lastRun .Location ())
875+ atDate := time .Date (lastRun .Year (), lastRun .Month (), lastRun .Day ()+ int (weekDayDiff ), at .Hour (), at .Minute (), at .Second (), 0 , lastRun .Location ())
876876
877877 if firstPass && atDate .After (lastRun ) {
878878 // checking to see if it is after i.e. greater than,
@@ -940,7 +940,7 @@ func (m monthlyJob) nextMonthDayAtTime(lastRun time.Time, days []int, firstPass
940940 for _ , at := range m .atTimes {
941941 // sub the day, and the at time hour/min/sec onto the lastScheduledRun's values
942942 // to use in checks to see if we've got our next run time
943- atDate := time .Date (lastRun .Year (), lastRun .Month (), day , at .Hour (), at .Minute (), at .Second (), lastRun . Nanosecond () , lastRun .Location ())
943+ atDate := time .Date (lastRun .Year (), lastRun .Month (), day , at .Hour (), at .Minute (), at .Second (), 0 , lastRun .Location ())
944944
945945 if atDate .Month () != lastRun .Month () {
946946 // this check handles if we're setting a day not in the current month
0 commit comments