From e7f4347a81acd1e757739838c3dcd9660f655a35 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 3 Apr 2017 12:04:34 -0700 Subject: set date to UTC times on server create, and updated editor timestamp to increase precision to seconds level --- system/admin/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') diff --git a/system/admin/handlers.go b/system/admin/handlers.go index a585faa..d04adec 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -1531,7 +1531,7 @@ func editHandler(res http.ResponseWriter, req *http.Request) { // create a timestamp if one was not set if ts == "" { - ts = fmt.Sprintf("%d", int64(time.Nanosecond)*time.Now().UnixNano()/int64(time.Millisecond)) + ts = fmt.Sprintf("%d", int64(time.Nanosecond)*time.Now().UTC().UnixNano()/int64(time.Millisecond)) req.PostForm.Set("timestamp", ts) } -- cgit v1.2.3