Solution that worked for me:
<p suppressHydrationWarning>Current time: {time?.toLocaleTimeString()}</p>
I followed this answer from this post.