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"; return "Today";
} }
var prefix = ''; return weekday[date.getDay()] + " " + date.toLocaleDateString();
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();
}, },
getPremiereDateText: function (item, date) { getPremiereDateText: function (item, date) {

View file

@ -23,7 +23,7 @@
<label for="selectImageSavingConvention"><b>Image saving convention:</b></label> <label for="selectImageSavingConvention"><b>Image saving convention:</b></label>
<select name="selectImageSavingConvention" id="selectImageSavingConvention"> <select name="selectImageSavingConvention" id="selectImageSavingConvention">
<option value="Compatible">Compatible - MB3/Plex/Xbmc</option> <option value="Compatible">Compatible - MB3/Plex/Xbmc</option>
<option value="Legacy">Standard - MB3/MB2</option> <option value="Legacy" selected="selected">Standard - MB3/MB2</option>
</select> </select>
<div class="fieldDescription">Media Browser recognizes images from most major media applications. Choosing your downloading convention is useful if you also use other products.</div> <div class="fieldDescription">Media Browser recognizes images from most major media applications. Choosing your downloading convention is useful if you also use other products.</div>
</div> </div>