xC/xP: pass timestamps with millisecond precision
Future-proofing the protocol.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user