mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Fix history time should save in UNIX timestamp to avoid time offset issue
This commit is contained in:
parent
4188d8f942
commit
c06b2f4838
2 changed files with 8 additions and 7 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue