always show date for now (but omit year to make it less annoying)

This commit is contained in:
Bruno Windels 2019-06-16 16:19:26 +02:00
parent d7bc92c391
commit a1c23f715a
2 changed files with 2 additions and 2 deletions

View file

@ -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() {

View file

@ -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)]),
])
);
}