Log stats in UTC.
This commit is contained in:
parent
5a10cdecd9
commit
4240297aa8
@ -47,7 +47,7 @@ func (s *Server) TimeIsGreater(hours int) bool {
|
|||||||
|
|
||||||
// Return a formatted string of LastUpdated.
|
// Return a formatted string of LastUpdated.
|
||||||
func (s *Server) Timestamp() string {
|
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.
|
// Return a fancy string duration since LastUpdated.
|
||||||
|
|||||||
@ -35,5 +35,5 @@ func ResetNow() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Now() time.Time {
|
func Now() time.Time {
|
||||||
return now
|
return now.UTC()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user