mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-16 21:16:24 -04:00
Fixed: Use 24 hour time when configured
This commit is contained in:
@@ -8,15 +8,19 @@ define(
|
||||
|
||||
url : window.NzbDrone.ApiRoot + '/config/ui',
|
||||
|
||||
shortDateTime : function () {
|
||||
return this.get('shortDateFormat') + ' ' + this.time(true);
|
||||
shortDateTime : function (includeSeconds) {
|
||||
return this.get('shortDateFormat') + ' ' + this.time(true, includeSeconds);
|
||||
},
|
||||
|
||||
longDateTime : function () {
|
||||
return this.get('longDateFormat') + ' ' + this.time(true);
|
||||
longDateTime : function (includeSeconds) {
|
||||
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) {
|
||||
return this.get('timeFormat').replace('(', '').replace(')', '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user