From 5c5aa6caec9c55f536f739e65063eb0a447601ce Mon Sep 17 00:00:00 2001 From: orohi Date: Sat, 6 Jun 2026 15:16:55 +0300 Subject: [PATCH] fix: serialize photo dates for Gallery props Co-authored-by: Cursor --- src/app/page.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index d38a805..0f91b63 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -21,6 +21,10 @@ async function getRecentPhotos() { export default async function HomePage() { const photos = await getRecentPhotos(); + const serializedPhotos = photos.map((photo) => ({ + ...photo, + createdAt: photo.createdAt.toISOString(), + })); return (
@@ -34,7 +38,7 @@ export default async function HomePage() {
- +