mirror of
https://github.com/zadam/trilium.git
synced 2025-03-04 02:53:30 +08:00
fix wrong dates - timestamps are number of seconds, not milliseconds
This commit is contained in:
parent
649dc0fbbb
commit
f2d2dad3d8
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ router.get('/', auth.checkApiAuth, async (req, res, next) => {
|
|||
root_notes.push(note);
|
||||
}
|
||||
|
||||
notes_map[note['note_id']] = note
|
||||
notes_map[note['note_id']] = note;
|
||||
}
|
||||
|
||||
for (const note of notes) {
|
||||
|
|
|
@ -19,7 +19,7 @@ function randomString(length, chars) {
|
|||
}
|
||||
|
||||
function nowTimestamp() {
|
||||
return Date.now();
|
||||
return Date.now() / 1000;
|
||||
}
|
||||
|
||||
function toBase64(plainText) {
|
||||
|
|
Loading…
Reference in a new issue