changeset 66:bf69962d10a5

Make sure that we're always in UTC
author Lewin Bormann <lbo@spheniscida.de>
date Mon, 12 Dec 2016 20:42:32 +0100
parents 5dd87615e3e0
children 775f65a3c897
files main.go
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/main.go	Mon Dec 12 20:22:14 2016 +0100
+++ b/main.go	Mon Dec 12 20:42:32 2016 +0100
@@ -4,6 +4,7 @@
 	"flag"
 	"log"
 	"net/http"
+	"time"
 
 	"bitbucket.org/dermesser/goe_bot/sql"
 )
@@ -49,6 +50,8 @@
 }
 
 func main() {
+	// make sure that we're always in UTC
+	time.LoadLocation("UTC")
 	log.SetFlags(log.Lmicroseconds)
 	flag.Parse()