mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
adjust date display for upcoming
This commit is contained in:
parent
219919f948
commit
ef106f264a
2 changed files with 2 additions and 26 deletions
|
@ -941,31 +941,7 @@
|
|||
return "Today";
|
||||
}
|
||||
|
||||
var prefix = '';
|
||||
|
||||
currentDate.setDate(currentDate.getDate() + 1);
|
||||
if (LibraryBrowser.isSameDay(date, currentDate)) {
|
||||
prefix = "Tomorrow - ";
|
||||
}
|
||||
|
||||
var todayDayOfWeek = new Date().getDay();
|
||||
currentDate.setDate(currentDate.getDate() + 1);
|
||||
|
||||
while (currentDate.getDay() > todayDayOfWeek) {
|
||||
|
||||
currentDate.setDate(currentDate.getDate() + 1);
|
||||
|
||||
if (LibraryBrowser.isSameDay(date, currentDate)) {
|
||||
|
||||
return weekday[currentDate.getDay()];
|
||||
}
|
||||
}
|
||||
|
||||
if (includeDayNamesInFuture) {
|
||||
return prefix + weekday[date.getDay()] + " " + date.toLocaleDateString();
|
||||
}
|
||||
|
||||
return prefix + date.toLocaleDateString();
|
||||
return weekday[date.getDay()] + " " + date.toLocaleDateString();
|
||||
},
|
||||
|
||||
getPremiereDateText: function (item, date) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue