mirror of https://github.com/Radarr/Radarr
21 lines
548 B
JavaScript
21 lines
548 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'Cells/NzbDroneCell',
|
|
'moment',
|
|
'Shared/UiSettingsModel'
|
|
], function (NzbDroneCell, moment, UiSettings) {
|
|
return NzbDroneCell.extend({
|
|
|
|
className: 'log-time-cell',
|
|
|
|
render: function () {
|
|
|
|
var date = moment(this._getValue());
|
|
this.$el.html('<span title="{1}">{0}</span>'.format(date.format(UiSettings.get('timeFormat')), date.format(UiSettings.longDateFormat())));
|
|
|
|
return this;
|
|
}
|
|
});
|
|
});
|