Skip to content

Commit

Permalink
Switch the timezone to UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
rkfg committed Mar 29, 2021
1 parent f263781 commit 225f69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)}}
}
Expand Down

0 comments on commit 225f69e

Please sign in to comment.