summaryrefslogtreecommitdiff
path: root/management/manager/manager.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-04-03 12:04:34 -0700
committerSteve Manuel <nilslice@gmail.com>2017-04-03 12:04:34 -0700
commite7f4347a81acd1e757739838c3dcd9660f655a35 (patch)
tree76a98dbf4d173e4b61571f5d1fb0d89116045728 /management/manager/manager.go
parent249fb1d41721a6fb25057f977a0a27daf773c936 (diff)
set date to UTC times on server create, and updated editor timestamp to increase precision to seconds level
Diffstat (limited to 'management/manager/manager.go')
-rw-r--r--management/manager/manager.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/management/manager/manager.go b/management/manager/manager.go
index 7dd2a58..93c3315 100644
--- a/management/manager/manager.go
+++ b/management/manager/manager.go
@@ -39,7 +39,10 @@ const managerHTML = `
hour = hour + 12;
}
- var date = new Date(year, month, day, hour, minute);
+ // add seconds to Date() to differentiate times more precisely,
+ // although not 100% accurately
+ var sec = (new Date()).getSeconds();
+ var date = new Date(year, month, day, hour, minute, sec);
$ts.val(date.getTime());
}