Skip to content

Commit

Permalink
Suppress hydration warning for timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
krispya committed Jul 20, 2024
1 parent ef455d0 commit 6ef58e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/ListLayoutWithTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 6ef58e2

Please sign in to comment.