Skip to content

Commit 4fc3c48

Browse files
authored
Merge pull request #2808 from hashicorp/b-restore-periodic
When restoring periodic jobs, take into consideration launch time zone
2 parents e280205 + 4f91f2b commit 4fc3c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nomad/leader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func (s *Server) restorePeriodicDispatcher() error {
299299
}
300300

301301
// nextLaunch is the next launch that should occur.
302-
nextLaunch := job.Periodic.Next(launch.Launch)
302+
nextLaunch := job.Periodic.Next(launch.Launch.In(job.Periodic.GetLocation()))
303303

304304
// We skip force launching the job if there should be no next launch
305305
// (the zero case) or if the next launch time is in the future. If it is

0 commit comments

Comments
 (0)