convert time to UTC for comparison in pillage

This commit is contained in:
shoopea 2019-08-01 18:37:11 +08:00
parent baec19650a
commit 6767552050

2
job.go
View File

@ -370,7 +370,7 @@ func jobPillage(j Job) {
} }
// is the job outdated now ? // is the job outdated now ?
if time.Now().After(r.Date.Add(time.Minute*3 + time.Second*30)) { if time.Now().UTC().After(r.Date.Add(time.Minute*3 + time.Second*30)) {
s := TGCommand{ s := TGCommand{
Type: commandSendMsg, Type: commandSendMsg,
Text: fmt.Sprintf("Pillage interception expired"), Text: fmt.Sprintf("Pillage interception expired"),