Fixed: Don't show today's relative time for release dates

pull/10195/head v5.10.1.9125
Bogdan 3 months ago
parent fa80608394
commit 9fe4793606

@ -11,6 +11,7 @@ interface RelativeDateCellProps {
date?: string;
includeSeconds?: boolean;
includeTime?: boolean;
timeForToday?: boolean;
component?: React.ElementType;
}
@ -20,6 +21,7 @@ function RelativeDateCell(props: RelativeDateCellProps) {
date,
includeSeconds = false,
includeTime = false,
timeForToday = true,
component: Component = TableRowCell,
...otherProps
@ -48,7 +50,7 @@ function RelativeDateCell(props: RelativeDateCellProps) {
timeFormat,
includeSeconds,
includeTime,
timeForToday: true,
timeForToday,
})}
</Component>
);

@ -202,6 +202,7 @@ class DiscoverMovieRow extends Component {
key={name}
className={styles[name]}
date={inCinemas}
timeForToday={false}
component={VirtualTableRowCell}
/>
);
@ -213,6 +214,7 @@ class DiscoverMovieRow extends Component {
key={name}
className={styles[name]}
date={physicalRelease}
timeForToday={false}
component={VirtualTableRowCell}
/>
);
@ -224,6 +226,7 @@ class DiscoverMovieRow extends Component {
key={name}
className={styles[name]}
date={digitalRelease}
timeForToday={false}
component={VirtualTableRowCell}
/>
);

@ -248,6 +248,7 @@ function MovieIndexRow(props: MovieIndexRowProps) {
key={name}
className={styles[name]}
date={inCinemas}
timeForToday={false}
component={VirtualTableRowCell}
/>
);
@ -261,6 +262,7 @@ function MovieIndexRow(props: MovieIndexRowProps) {
key={name}
className={styles[name]}
date={digitalRelease}
timeForToday={false}
component={VirtualTableRowCell}
/>
);
@ -274,6 +276,7 @@ function MovieIndexRow(props: MovieIndexRowProps) {
key={name}
className={styles[name]}
date={physicalRelease}
timeForToday={false}
component={VirtualTableRowCell}
/>
);
@ -287,6 +290,7 @@ function MovieIndexRow(props: MovieIndexRowProps) {
key={name}
className={styles[name]}
date={releaseDate}
timeForToday={false}
component={VirtualTableRowCell}
/>
);

@ -70,6 +70,7 @@ function CutoffUnmetRow(props) {
key={name}
className={styles[name]}
date={inCinemas}
timeForToday={false}
/>
);
}
@ -80,6 +81,7 @@ function CutoffUnmetRow(props) {
key={name}
className={styles[name]}
date={digitalRelease}
timeForToday={false}
/>
);
}
@ -90,6 +92,7 @@ function CutoffUnmetRow(props) {
key={name}
className={styles[name]}
date={physicalRelease}
timeForToday={false}
/>
);
}

@ -73,6 +73,7 @@ function MissingRow(props) {
key={name}
className={styles[name]}
date={inCinemas}
timeForToday={false}
/>
);
}
@ -83,6 +84,7 @@ function MissingRow(props) {
key={name}
className={styles[name]}
date={digitalRelease}
timeForToday={false}
/>
);
}
@ -93,6 +95,7 @@ function MissingRow(props) {
key={name}
className={styles[name]}
date={physicalRelease}
timeForToday={false}
/>
);
}

Loading…
Cancel
Save