mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix wrong dates - timestamps are number of seconds, not milliseconds
This commit is contained in:
parent
649dc0fbbb
commit
f2d2dad3d8
@ -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…
x
Reference in New Issue
Block a user