fix wrong dates - timestamps are number of seconds, not milliseconds

This commit is contained in:
azivner 2017-10-15 16:39:20 -04:00
parent 649dc0fbbb
commit f2d2dad3d8
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {