From eac7a71efb47bfaaf5dbd2b64c95b6896f2ba7fe Mon Sep 17 00:00:00 2001 From: Guilherme Ananias Date: Sat, 2 Nov 2024 01:49:24 -0300 Subject: [PATCH] fix(bookmarks): not consider timezone --- src/pages/bookmarks/index.astro | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/bookmarks/index.astro b/src/pages/bookmarks/index.astro index c4c509d..2f2f743 100644 --- a/src/pages/bookmarks/index.astro +++ b/src/pages/bookmarks/index.astro @@ -10,11 +10,9 @@ import bookmarksJson from './_bookmarks.json'; const bookmarksData = bookmarksJson.data; -dayjs.extend(dayjsTimezone); - const groupByMonth = (bookmarks) => { const grouped = bookmarks.reduce((acc, bookmark) => { - const month = dayjs.tz(bookmark.savedAt, 'America/Sao_Paulo').startOf('month').toISOString(); + const month = dayjs(bookmark.savedAt).startOf('month').toISOString(); if (!acc[month]) { acc[month] = []; }