diff --git a/src/domain/session/room/timeline/tiles/MessageTile.js b/src/domain/session/room/timeline/tiles/MessageTile.js index deff0c77..f164c948 100644 --- a/src/domain/session/room/timeline/tiles/MessageTile.js +++ b/src/domain/session/room/timeline/tiles/MessageTile.js @@ -18,7 +18,7 @@ export default class MessageTile extends SimpleTile { } get date() { - return this._date.toLocaleDateString(); + return this._date.toLocaleDateString({}, {month: "numeric", day: "numeric"}); } get time() { diff --git a/src/ui/web/session/room/timeline/TextMessageView.js b/src/ui/web/session/room/timeline/TextMessageView.js index 25a7003f..3d489c5c 100644 --- a/src/ui/web/session/room/timeline/TextMessageView.js +++ b/src/ui/web/session/room/timeline/TextMessageView.js @@ -7,7 +7,7 @@ export default class TextMessageView extends TemplateView { {className: {"TextMessageView": true, own: vm.isOwn}}, t.div({className: "message-container"}, [ t.div({className: "sender"}, vm => vm.isContinuation ? "" : vm.sender), - t.p([vm.text, t.time(vm.time)]), + t.p([vm.text, t.time(vm.date + " " + vm.time)]), ]) ); }