Skip to content
Permalink
Browse files

set local timezone to UTC on app boot

  • Loading branch information...
dannyvankooten committed Nov 14, 2018
1 parent b5ee8ea commit bdd0c5a5c07f602017a082e8186144fcbd9909d7
Showing with 2 additions and 1 deletion.
  1. +2 −1 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}

0 comments on commit bdd0c5a

Please sign in to comment.
You can’t perform that action at this time.