We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5daf356 commit 23e257eCopy full SHA for 23e257e
src/app/components/client-date.tsx
@@ -1,7 +1,3 @@
1
-'use client';
2
export default function ClientDate({ date }: { date: string }) {
3
- if (typeof window !== 'undefined') {
4
- return <>{new Date(date).toLocaleDateString()}</>;
5
- }
6
return <>{date}</>;
7
}
0 commit comments