From 67675520509e13f56155b8d14f3d9e56e3ac5caa Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 1 Aug 2019 18:37:11 +0800 Subject: [PATCH] convert time to UTC for comparison in pillage --- job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/job.go b/job.go index 68c0982..2cbe811 100644 --- a/job.go +++ b/job.go @@ -370,7 +370,7 @@ func jobPillage(j Job) { } // 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{ Type: commandSendMsg, Text: fmt.Sprintf("Pillage interception expired"),