diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 00249dd32f..b8cb5ff046 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -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) { diff --git a/dashboard-ui/wizardsettings.html b/dashboard-ui/wizardsettings.html index a57029f614..08687a985b 100644 --- a/dashboard-ui/wizardsettings.html +++ b/dashboard-ui/wizardsettings.html @@ -23,7 +23,7 @@