diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-13 13:13:07 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-13 13:13:07 -0800 |
commit | ffa8654af317bfb05b1d38a17aa4a972d1c8056d (patch) | |
tree | 3f434769aab44f1437f5438eae9942871f98950b /system/admin/handlers.go | |
parent | 59ee9fbb237673c2d0cccad42f7adbae65852b8d (diff) |
adding more precise timestamp creation algorithm, and a LoadCacheConfig func to warm the config cache vs. trying to set defaults on init so the cache exists
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r-- | system/admin/handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go index 59e7a66..00add87 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -1533,7 +1533,7 @@ func editHandler(res http.ResponseWriter, req *http.Request) { // create a timestamp if one was not set if ts == "" { - ts := fmt.Sprintf("%d", time.Now().Unix()*1000) + ts := fmt.Sprintf("%d", int64(time.Nanosecond)*time.Now().UnixNano()/int64(time.Millisecond)) req.PostForm.Set("timestamp", ts) } |