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";
|
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) {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue