forked from mystiq/hydrogen-web
always show date for now (but omit year to make it less annoying)
This commit is contained in:
parent
d7bc92c391
commit
a1c23f715a
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ export default class MessageTile extends SimpleTile {
|
||||||
}
|
}
|
||||||
|
|
||||||
get date() {
|
get date() {
|
||||||
return this._date.toLocaleDateString();
|
return this._date.toLocaleDateString({}, {month: "numeric", day: "numeric"});
|
||||||
}
|
}
|
||||||
|
|
||||||
get time() {
|
get time() {
|
||||||
|
|
|
@ -7,7 +7,7 @@ export default class TextMessageView extends TemplateView {
|
||||||
{className: {"TextMessageView": true, own: vm.isOwn}},
|
{className: {"TextMessageView": true, own: vm.isOwn}},
|
||||||
t.div({className: "message-container"}, [
|
t.div({className: "message-container"}, [
|
||||||
t.div({className: "sender"}, vm => vm.isContinuation ? "" : vm.sender),
|
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)]),
|
||||||
])
|
])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue