Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/blame/commit/2b2bd23065f7aa02419ff7d1825e8a7e3175bbb5/UI/Shared/FormatHelpers.js You should set ROOT_URL correctly, otherwise the web may not work correctly.
Sonarr/UI/Shared/FormatHelpers.js

39 lines
974 B

'use strict';
12 years ago
define(
[
'sugar'
], {
Bytes: function (sourceSize) {
var size = Number(sourceSize);
return size.bytes(1);
},
12 years ago
DateHelper: function (sourceDate) {
if (!sourceDate) {
return '';
}
12 years ago
var date = Date.create(sourceDate);
12 years ago
if (date.isYesterday()) {
return 'Yesterday';
}
if (date.isToday()) {
return 'Today';
}
if (date.isTomorrow()) {
return 'Tomorrow';
}
if (date.isAfter(Date.create('tomorrow')) && date.isBefore(Date.create().addDays(7))) {
return date.format('{Weekday}');
}
12 years ago
if (date.isAfter(Date.create().addDays(6))) {
return date.relative().replace(' from now', '');
}
12 years ago
return date.format('{MM}/{dd}/{yyyy}');
}
});