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