From 31e9c6d2d57ecd6c1c73623e7e6a1f8608ec3983 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Tue, 6 Sep 2022 14:38:09 +0200 Subject: xC/xP: pass timestamps with millisecond precision Future-proofing the protocol. --- xP/public/xP.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xP') diff --git a/xP/public/xP.js b/xP/public/xP.js index c0dba93..f21683c 100644 --- a/xP/public/xP.js +++ b/xP/public/xP.js @@ -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)) -- cgit v1.2.3-70-g09d2