From b16fa5e21a3852151c6b3d3d5569154d863d1795 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sun, 1 Feb 2026 19:26:23 +0000
Subject: chore: replace dayjs with data-fns

---
 .../dashboard/bookmarks/BookmarkFormattedCreatedAt.tsx         | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'apps/web/components/dashboard/bookmarks/BookmarkFormattedCreatedAt.tsx')

diff --git a/apps/web/components/dashboard/bookmarks/BookmarkFormattedCreatedAt.tsx b/apps/web/components/dashboard/bookmarks/BookmarkFormattedCreatedAt.tsx
index a3e5d3b3..7c254336 100644
--- a/apps/web/components/dashboard/bookmarks/BookmarkFormattedCreatedAt.tsx
+++ b/apps/web/components/dashboard/bookmarks/BookmarkFormattedCreatedAt.tsx
@@ -1,8 +1,8 @@
-import dayjs from "dayjs";
+import { format, isAfter, subYears } from "date-fns";
 
 export default function BookmarkFormattedCreatedAt(prop: { createdAt: Date }) {
-  const createdAt = dayjs(prop.createdAt);
-  const oneYearAgo = dayjs().subtract(1, "year");
-  const formatString = createdAt.isAfter(oneYearAgo) ? "MMM D" : "MMM D, YYYY";
-  return createdAt.format(formatString);
+  const createdAt = prop.createdAt;
+  const oneYearAgo = subYears(new Date(), 1);
+  const formatString = isAfter(createdAt, oneYearAgo) ? "MMM d" : "MMM d, yyyy";
+  return format(createdAt, formatString);
 }
-- 
cgit v1.2.3-70-g09d2

