Skip to content

Commit

Permalink
drop time from channel date output
Browse files Browse the repository at this point in the history
  • Loading branch information
justdan96 committed Aug 5, 2024
1 parent 0751064 commit b423a9e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/src/components/Channels/ChannelItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export default function ChannelItem(props: ChannelItemProps) {

text += `(${ARCHES[channel.arch]})`;
}
const date = channel.package ? new Date(channel.package.created_ts) : null;
return (
<Box display="flex" ml={1}>
<Box>{text}</Box>
Expand All @@ -76,7 +75,12 @@ export default function ChannelItem(props: ChannelItemProps) {
<ScheduleIcon fontSize="small" />
</Tooltip>
</Box>
<Box pl={1}> {makeLocaleTime(date)} </Box>
<Box pl={1}>
{makeLocaleTime(channel.package.created_ts, {
showTime: false,
dateFormat: { year: 'numeric', month: '2-digit', day: '2-digit' },
})}
</Box>
</Box>
</Box>
)}
Expand Down

0 comments on commit b423a9e

Please sign in to comment.