From 225f69eefc7abc1fe1bcc1b3794c1ae306072c00 Mon Sep 17 00:00:00 2001 From: rkfg Date: Mon, 29 Mar 2021 19:21:36 +0300 Subject: [PATCH] Switch the timezone to UTC --- query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query.go b/query.go index 8825a5b..1dda132 100644 --- a/query.go +++ b/query.go @@ -164,7 +164,7 @@ func query(srv *ns2server) { log.Printf("Error: %s", err) srv.failures++ if srv.failures > config.FailureLimit && srv.downSince == nil { - now := time.Now() + now := time.Now().In(time.UTC) srv.downSince = &now sendChan <- message{MessageSend: &discordgo.MessageSend{Content: fmt.Sprintf("Server %s is down!", srv.Name)}} }