fix share time string

This commit is contained in:
Maxime Cannoodt 2022-07-04 21:25:13 +02:00
parent 704a2c43d0
commit 7dd31ce43d

View File

@ -44,7 +44,7 @@
});
$: if (note.insert_time) {
const diff_ms = new Date().valueOf() - note.insert_time.valueOf();
const diff_ms = new Date().valueOf() - new Date(note.insert_time).valueOf();
timeString = msToString(diff_ms);
}