mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix Same year appears in <year> - <year> format under card.
This commit is contained in:
parent
54d9d90e84
commit
fbcd543a26
1 changed files with 1 additions and 1 deletions
|
@ -669,7 +669,7 @@ function getCardFooterText(item, apiClient, options, footerClass, progressHtml,
|
|||
lines.push(globalize.translate('SeriesYearToPresent', productionYear || ''));
|
||||
} else if (item.EndDate && item.ProductionYear) {
|
||||
const endYear = datetime.toLocaleString(datetime.parseISO8601Date(item.EndDate).getFullYear(), { useGrouping: false });
|
||||
lines.push(productionYear + ((endYear === item.ProductionYear) ? '' : (' - ' + endYear)));
|
||||
lines.push(productionYear + ((endYear === productionYear) ? '' : (' - ' + endYear)));
|
||||
} else {
|
||||
lines.push(productionYear || '');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue