Skip to content

Commit f7d1e20

Browse files
authored
Merge pull request #978 from pmndrs/fix/timestamp-hydration
Fix hydration warning on blog timestamp
2 parents 1a32fb7 + 91b427a commit f7d1e20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

layouts/ListLayoutWithTags.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ export default function ListLayoutWithTags({
129129
<dl>
130130
<dt className="sr-only">Published on</dt>
131131
<dd className="text-base font-medium leading-6 text-gray-500 dark:text-gray-400">
132-
<time dateTime={date}>{formatDate(date, siteMetadata.locale)}</time>
132+
<time dateTime={date} suppressHydrationWarning>
133+
{formatDate(date, siteMetadata.locale)}
134+
</time>
133135
</dd>
134136
</dl>
135137
<div className="space-y-3">

0 commit comments

Comments
 (0)