|
|
@ -8,15 +8,19 @@ define(
|
|
|
|
|
|
|
|
|
|
|
|
url : window.NzbDrone.ApiRoot + '/config/ui',
|
|
|
|
url : window.NzbDrone.ApiRoot + '/config/ui',
|
|
|
|
|
|
|
|
|
|
|
|
shortDateTime : function () {
|
|
|
|
shortDateTime : function (includeSeconds) {
|
|
|
|
return this.get('shortDateFormat') + ' ' + this.time(true);
|
|
|
|
return this.get('shortDateFormat') + ' ' + this.time(true, includeSeconds);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
longDateTime : function () {
|
|
|
|
longDateTime : function (includeSeconds) {
|
|
|
|
return this.get('longDateFormat') + ' ' + this.time(true);
|
|
|
|
return this.get('longDateFormat') + ' ' + this.time(true, includeSeconds);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
time : function (includeMinuteZero) {
|
|
|
|
time : function (includeMinuteZero, includeSeconds) {
|
|
|
|
|
|
|
|
if (includeSeconds) {
|
|
|
|
|
|
|
|
return this.get('timeFormat').replace(/\(?\:mm\)?/, ':mm:ss');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (includeMinuteZero) {
|
|
|
|
if (includeMinuteZero) {
|
|
|
|
return this.get('timeFormat').replace('(', '').replace(')', '');
|
|
|
|
return this.get('timeFormat').replace('(', '').replace(')', '');
|
|
|
|
}
|
|
|
|
}
|
|
|
|