Fossil SCM
Only apply sender-local time if it's in the message (older messages do not have it).
Commit
f2a58f10bf612b53a70132470405959bcc3b63b05920bcc88cf08667ab4b5cb5
Parent
3c5e2badc8254dc…
1 file changed
+1
-1
+1
-1
| --- src/chat.js | ||
| +++ src/chat.js | ||
| @@ -586,11 +586,11 @@ | ||
| 586 | 586 | // Date works, render informative timestamps |
| 587 | 587 | const xfrom = eMsg.dataset.xfrom; |
| 588 | 588 | D.append(this.e, |
| 589 | 589 | D.append(D.span(), localTimeString(d)," ",Chat.me," time"), |
| 590 | 590 | D.append(D.span(), iso8601ish(d))); |
| 591 | - if(xfrom!==Chat.me){ | |
| 591 | + if(eMsg.dataset.lmtime && xfrom!==Chat.me){ | |
| 592 | 592 | D.append(this.e, |
| 593 | 593 | D.append(D.span(), localTime8601( |
| 594 | 594 | new Date(eMsg.dataset.lmtime) |
| 595 | 595 | )," ",xfrom," time")); |
| 596 | 596 | } |
| 597 | 597 |
| --- src/chat.js | |
| +++ src/chat.js | |
| @@ -586,11 +586,11 @@ | |
| 586 | // Date works, render informative timestamps |
| 587 | const xfrom = eMsg.dataset.xfrom; |
| 588 | D.append(this.e, |
| 589 | D.append(D.span(), localTimeString(d)," ",Chat.me," time"), |
| 590 | D.append(D.span(), iso8601ish(d))); |
| 591 | if(xfrom!==Chat.me){ |
| 592 | D.append(this.e, |
| 593 | D.append(D.span(), localTime8601( |
| 594 | new Date(eMsg.dataset.lmtime) |
| 595 | )," ",xfrom," time")); |
| 596 | } |
| 597 |
| --- src/chat.js | |
| +++ src/chat.js | |
| @@ -586,11 +586,11 @@ | |
| 586 | // Date works, render informative timestamps |
| 587 | const xfrom = eMsg.dataset.xfrom; |
| 588 | D.append(this.e, |
| 589 | D.append(D.span(), localTimeString(d)," ",Chat.me," time"), |
| 590 | D.append(D.span(), iso8601ish(d))); |
| 591 | if(eMsg.dataset.lmtime && xfrom!==Chat.me){ |
| 592 | D.append(this.e, |
| 593 | D.append(D.span(), localTime8601( |
| 594 | new Date(eMsg.dataset.lmtime) |
| 595 | )," ",xfrom," time")); |
| 596 | } |
| 597 |