From 4240297aa8eafa0a8f8173d2a830c3a630189b75 Mon Sep 17 00:00:00 2001 From: "A. Svensson" Date: Mon, 22 Feb 2016 18:35:46 +0100 Subject: [PATCH] Log stats in UTC. --- src/models.go | 2 +- src/utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models.go b/src/models.go index d1fd7c6..687e582 100644 --- a/src/models.go +++ b/src/models.go @@ -47,7 +47,7 @@ func (s *Server) TimeIsGreater(hours int) bool { // Return a formatted string of LastUpdated. func (s *Server) Timestamp() string { - return s.LastUpdated.String() + return s.LastUpdated.Format("2006-01-02 15:04 MST") } // Return a fancy string duration since LastUpdated. diff --git a/src/utils.go b/src/utils.go index 3c5246c..a11ece0 100644 --- a/src/utils.go +++ b/src/utils.go @@ -35,5 +35,5 @@ func ResetNow() { } func Now() time.Time { - return now + return now.UTC() }