Fossil SCM

chat: removed extraneous T from sender-local timestamp.

stephan 2020-12-26 20:33 trunk
Commit 16b8e480ec6f7934eaf28ed52c2d5b01e040452b4ebe43a7dcd9567bcb675ce4
1 file changed +1 -1
+1 -1
--- src/chat.js
+++ src/chat.js
@@ -589,11 +589,11 @@
589589
D.append(D.span(), iso8601ish(d)));
590590
if(eMsg.dataset.lmtime && xfrom!==Chat.me){
591591
D.append(this.e,
592592
D.append(D.span(), localTime8601(
593593
new Date(eMsg.dataset.lmtime)
594
- )," ",xfrom," time"));
594
+ ).replace('T',' ')," ",xfrom," time"));
595595
}
596596
}else{
597597
// Date doesn't work, so dumb it down...
598598
D.append(this.e, D.append(D.span(), eMsg.dataset.timestamp," Zulu"));
599599
}
600600
--- src/chat.js
+++ src/chat.js
@@ -589,11 +589,11 @@
589 D.append(D.span(), iso8601ish(d)));
590 if(eMsg.dataset.lmtime && xfrom!==Chat.me){
591 D.append(this.e,
592 D.append(D.span(), localTime8601(
593 new Date(eMsg.dataset.lmtime)
594 )," ",xfrom," time"));
595 }
596 }else{
597 // Date doesn't work, so dumb it down...
598 D.append(this.e, D.append(D.span(), eMsg.dataset.timestamp," Zulu"));
599 }
600
--- src/chat.js
+++ src/chat.js
@@ -589,11 +589,11 @@
589 D.append(D.span(), iso8601ish(d)));
590 if(eMsg.dataset.lmtime && xfrom!==Chat.me){
591 D.append(this.e,
592 D.append(D.span(), localTime8601(
593 new Date(eMsg.dataset.lmtime)
594 ).replace('T',' ')," ",xfrom," time"));
595 }
596 }else{
597 // Date doesn't work, so dumb it down...
598 D.append(this.e, D.append(D.span(), eMsg.dataset.timestamp," Zulu"));
599 }
600

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button