1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-02-24 23:23:21 +00:00

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

This commit is contained in:
Bogdan 2024-08-31 11:03:09 +03:00
parent fa80608394
commit 9fe4793606
5 changed files with 16 additions and 1 deletions

View file

@ -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>
);

View file

@ -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}
/>
);

View file

@ -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}
/>
);

View file

@ -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}
/>
);
}

View file

@ -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}
/>
);
}