summaryrefslogtreecommitdiff
path: root/lib/history.js
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-11 16:46:50 +0800
committerWu Cheng-Han2016-10-11 16:46:50 +0800
commitc06b2f483898669b224321728321b7a3a8e9e37c (patch)
tree24c7d3a6ecb19c074025fd9c24724393db013049 /lib/history.js
parent4188d8f942867c27121d523a47899d726196213d (diff)
Fix history time should save in UNIX timestamp to avoid time offset issue
Diffstat (limited to 'lib/history.js')
-rw-r--r--lib/history.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/history.js b/lib/history.js
index c3754e0b..4a3bbe1e 100644
--- a/lib/history.js
+++ b/lib/history.js
@@ -123,7 +123,7 @@ function updateHistory(userid, noteId, document) {
var noteInfo = models.Note.parseNoteInfo(document);
noteHistory.id = noteId;
noteHistory.text = noteInfo.title;
- noteHistory.time = moment().format('MMMM Do YYYY, h:mm:ss a');
+ noteHistory.time = moment().valueOf();
noteHistory.tags = noteInfo.tags;
caches[userid].isDirty = true;
});