Fix hydration warning on timestamp

This commit is contained in:
Kris Baumgartner 2024-07-20 12:53:56 -07:00
parent 947d3a0fa7
commit 91b427abd8

View File

@ -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">