fix: ensure date is Date #11
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ function ItemCard(props: CardProps): ReactNode {
|
||||||
const { title, url, published } = props
|
const { title, url, published } = props
|
||||||
const classes = useStyles()
|
const classes = useStyles()
|
||||||
|
|
||||||
const formattedDate = published.toLocaleString('en-GB', { timeZone: 'UTC' })
|
const formattedDate = (new Date(published)).toLocaleString('en-GB', { timeZone: 'UTC' })
|
||||||
return (
|
return (
|
||||||
<Card className={classes.root}>
|
<Card className={classes.root}>
|
||||||
<a href={url}>{title}</a>
|
<a href={url}>{title}</a>
|
||||||
|
|
Loading…
Reference in a new issue