mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
New: Choose calendar starting day of week New: Choose prefered date/time formats New: Option to disable relative dates and show absolute dates instead
20 lines
548 B
JavaScript
20 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;
|
|
}
|
|
});
|
|
});
|