A full-featured CRM built with React, shadcn/ui, and Supabase.
Fix removal of code
François Zaninottod8da65b042ee
diff --git a/src/components/atomic-crm/misc/RelativeDate.tsx b/src/components/atomic-crm/misc/RelativeDate.tsxindex 9443074d..6920bd2b 100644--- a/src/components/atomic-crm/misc/RelativeDate.tsx+++ b/src/components/atomic-crm/misc/RelativeDate.tsx@@ -25,6 +25,13 @@ import { useLocaleState } from "ra-core";const getDateFnsLocale = (locale: string) =>locale.startsWith("fr") ? fr : enUS;+export const formatLocalizedDate = (date: string, locale = "en") =>+ new Intl.DateTimeFormat(locale, {+ year: "numeric",+ month: "long",+ day: "numeric",+ }).format(new Date(date));+export const formatRelativeDate = (date: string, locale = "en") => {const dateObj = new Date(date);const now = new Date();