1
0
Fork 0
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:
Luke Pulverenti 2013-10-28 08:26:21 -04:00
parent 219919f948
commit ef106f264a
2 changed files with 2 additions and 26 deletions

View file

@ -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) {