From bdd0c5a5c07f602017a082e8186144fcbd9909d7 Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Wed, 14 Nov 2018 09:31:47 +0100 Subject: [PATCH] set local timezone to UTC on app boot --- pkg/cli/cli.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cli/cli.go b/pkg/cli/cli.go index 7f64f2b5..e458d55d 100644 --- a/pkg/cli/cli.go +++ b/pkg/cli/cli.go @@ -2,6 +2,7 @@ package cli import ( "os" + "time" log "github.com/sirupsen/logrus" "github.com/urfave/cli" @@ -20,7 +21,7 @@ var app *App func Run(v string) error { // force all times in UTC, regardless of server timezone - os.Setenv("TZ", "") + time.Local = time.UTC // setup CLI app app = &App{cli.NewApp(), nil, nil}