mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
only show end date if different
This commit is contained in:
parent
fdd671eafb
commit
f80d4b8907
1 changed files with 7 additions and 1 deletions
|
@ -1332,7 +1332,13 @@
|
|||
if (item.EndDate) {
|
||||
|
||||
try {
|
||||
text += "-" + parseISO8601Date(item.EndDate, { toLocal: true }).getFullYear();
|
||||
|
||||
var endYear = parseISO8601Date(item.EndDate, { toLocal: true }).getFullYear();
|
||||
|
||||
if (endYear != item.ProductionYear) {
|
||||
text += "-" + parseISO8601Date(item.EndDate, { toLocal: true }).getFullYear();
|
||||
}
|
||||
|
||||
}
|
||||
catch (e) {
|
||||
console.log("Error parsing date: " + item.EndDate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue