mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
Periodic jobs always are evaluated in UTC TZ
This commit is contained in:
@@ -146,7 +146,7 @@ func (c *RunCommand) Run(args []string) int {
|
||||
if detach || periodic {
|
||||
c.Ui.Output("Job registration successful")
|
||||
if periodic {
|
||||
c.Ui.Output(fmt.Sprintf("Approximate next launch time: %v", job.Periodic.Next(time.Now())))
|
||||
c.Ui.Output(fmt.Sprintf("Approximate next launch time: %v", job.Periodic.Next(time.Now().UTC())))
|
||||
} else {
|
||||
c.Ui.Output("Evaluation ID: " + evalID)
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ func (c *StatusCommand) Run(args []string) int {
|
||||
|
||||
if periodic {
|
||||
basic = append(basic, fmt.Sprintf("Next Periodic Launch|%v",
|
||||
sJob.Periodic.Next(time.Now())))
|
||||
sJob.Periodic.Next(time.Now().UTC())))
|
||||
}
|
||||
|
||||
c.Ui.Output(formatKV(basic))
|
||||
|
||||
Reference in New Issue
Block a user