A full-featured CRM built with React, shadcn/ui, and Supabase.
Fix new note date timezone
fzaninotto0718bfe0e29a
diff --git a/src/components/atomic-crm/notes/NoteCreate.tsx b/src/components/atomic-crm/notes/NoteCreate.tsxindex c844b5ca..09927da2 100644--- a/src/components/atomic-crm/notes/NoteCreate.tsx+++ b/src/components/atomic-crm/notes/NoteCreate.tsx@@ -103,7 +103,7 @@ const NoteCreateButton = ({...data,[foreignKeyMapping[reference]]: record.id,sales_id: identity.id,- date: data.date || getCurrentDate(),+ date: new Date(data.date || getCurrentDate()).toISOString(),})}mutationOptions={{onSuccess: handleSuccess,