Merge pull request #978 from pmndrs/fix/timestamp-hydration
Fix hydration warning on blog timestamp
This commit is contained in:
commit
f7d1e20cee
@ -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