Localized the message detail view's timestamps

Momentjs will now format the timestamps depending on the locale.

Fixes: #954

// FREEBIE
This commit is contained in:
Benedikt Constantin Radtke 2016-10-27 00:49:04 +02:00
parent 06535f1861
commit add159dde9

View file

@ -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'),