summaryrefslogtreecommitdiff
path: root/xP
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-06 14:38:09 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-06 14:39:01 +0200
commit31e9c6d2d57ecd6c1c73623e7e6a1f8608ec3983 (patch)
tree4544b912836db36fc0c026ede4c0b82de6f2187d /xP
parentd2af6cf64c70e2a1b381e4edc058e7a530e86514 (diff)
downloadxK-31e9c6d2d57ecd6c1c73623e7e6a1f8608ec3983.tar.gz
xK-31e9c6d2d57ecd6c1c73623e7e6a1f8608ec3983.tar.xz
xK-31e9c6d2d57ecd6c1c73623e7e6a1f8608ec3983.zip
xC/xP: pass timestamps with millisecond precision
Future-proofing the protocol.
Diffstat (limited to 'xP')
-rw-r--r--xP/public/xP.js2
1 files changed, 1 insertions, 1 deletions
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))