Fixed: Release dates for Discover Movie posters

pull/10688/head v5.15.1.9463
Bogdan 2 months ago
parent 09b4bf15cf
commit 179637fe8b

@ -50,15 +50,13 @@ function DiscoverMoviePosterInfo(props) {
} }
if (sortKey === 'inCinemas' && inCinemas) { if (sortKey === 'inCinemas' && inCinemas) {
const inCinemasDate = getRelativeDate( const inCinemasDate = getRelativeDate({
inCinemas, date: inCinemas,
shortDateFormat, shortDateFormat,
showRelativeDates, showRelativeDates,
{ timeFormat,
timeFormat, timeForToday: false
timeForToday: false });
}
);
return ( return (
<div className={styles.info} title={translate('InCinemas')}> <div className={styles.info} title={translate('InCinemas')}>
@ -68,15 +66,13 @@ function DiscoverMoviePosterInfo(props) {
} }
if (sortKey === 'digitalRelease' && digitalRelease) { if (sortKey === 'digitalRelease' && digitalRelease) {
const digitalReleaseDate = getRelativeDate( const digitalReleaseDate = getRelativeDate({
digitalRelease, date: digitalRelease,
shortDateFormat, shortDateFormat,
showRelativeDates, showRelativeDates,
{ timeFormat,
timeFormat, timeForToday: false
timeForToday: false });
}
);
return ( return (
<div className={styles.info} title={translate('DigitalRelease')}> <div className={styles.info} title={translate('DigitalRelease')}>
@ -86,15 +82,13 @@ function DiscoverMoviePosterInfo(props) {
} }
if (sortKey === 'physicalRelease' && physicalRelease) { if (sortKey === 'physicalRelease' && physicalRelease) {
const physicalReleaseDate = getRelativeDate( const physicalReleaseDate = getRelativeDate({
physicalRelease, date: physicalRelease,
shortDateFormat, shortDateFormat,
showRelativeDates, showRelativeDates,
{ timeFormat,
timeFormat, timeForToday: false
timeForToday: false });
}
);
return ( return (
<div className={styles.info} title={translate('PhysicalRelease')}> <div className={styles.info} title={translate('PhysicalRelease')}>

Loading…
Cancel
Save