xC/xP: pass timestamps with millisecond precision

Future-proofing the protocol.
This commit is contained in:
2022-09-06 14:38:09 +02:00
parent d2af6cf64c
commit 31e9c6d2d5
3 changed files with 3 additions and 3 deletions

View File

@@ -196,7 +196,7 @@ let Buffer = {
let lastDateMark = undefined
b.lines.forEach(line => {
let date = new Date(line.when * 1000)
let date = new Date(line.when)
let dateMark = date.toLocaleDateString()
if (dateMark !== lastDateMark) {
lines.push(m('.date', {}, dateMark))