mirror of
https://github.com/zadam/trilium.git
synced 2025-12-17 12:59:09 +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);
|
root_notes.push(note);
|
||||||
}
|
}
|
||||||
|
|
||||||
notes_map[note['note_id']] = note
|
notes_map[note['note_id']] = note;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const note of notes) {
|
for (const note of notes) {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ function randomString(length, chars) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function nowTimestamp() {
|
function nowTimestamp() {
|
||||||
return Date.now();
|
return Date.now() / 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
function toBase64(plainText) {
|
function toBase64(plainText) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue