Skip to content

Commit

Permalink
Merge pull request #2808 from hashicorp/b-restore-periodic
Browse files Browse the repository at this point in the history
When restoring periodic jobs, take into consideration launch time zone
  • Loading branch information
dadgar committed Jul 7, 2017
2 parents e280205 + 4f91f2b commit 4fc3c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomad/leader.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func (s *Server) restorePeriodicDispatcher() error {
}

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

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

0 comments on commit 4fc3c48

Please sign in to comment.