mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Cleaned up time formatting
This commit is contained in:
@@ -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\)/, '');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user