Fix hydration warning on timestamp
This commit is contained in:
parent
947d3a0fa7
commit
91b427abd8
@ -129,7 +129,9 @@ export default function ListLayoutWithTags({
|
||||
<dl>
|
||||
<dt className="sr-only">Published on</dt>
|
||||
<dd className="text-base font-medium leading-6 text-gray-500 dark:text-gray-400">
|
||||
<time dateTime={date}>{formatDate(date, siteMetadata.locale)}</time>
|
||||
<time dateTime={date} suppressHydrationWarning>
|
||||
{formatDate(date, siteMetadata.locale)}
|
||||
</time>
|
||||
</dd>
|
||||
</dl>
|
||||
<div className="space-y-3">
|
||||
|
Loading…
x
Reference in New Issue
Block a user