Localized the message detail view's timestamps

Momentjs will now format the timestamps depending on the locale.

Fixes: #954

// FREEBIE
pull/749/head
Benedikt Constantin Radtke 9 years ago
parent 06535f1861
commit add159dde9

@ -74,8 +74,8 @@
});
}
this.$el.html(Mustache.render(_.result(this, 'template', ''), {
sent_at : moment(this.model.get('sent_at')).toString(),
received_at : this.model.isIncoming() ? moment(this.model.get('received_at')).toString() : null,
sent_at : moment(this.model.get('sent_at')).format('LLLL'),
received_at : this.model.isIncoming() ? moment(this.model.get('received_at')).format('LLLL') : null,
tofrom : this.model.isIncoming() ? i18n('from') : i18n('to'),
errors : unknownErrors,
title : i18n('messageDetail'),

Loading…
Cancel
Save