diff --git a/app/(main)/factures/page.tsx b/app/(main)/factures/page.tsx index fca2219..6a5103c 100644 --- a/app/(main)/factures/page.tsx +++ b/app/(main)/factures/page.tsx @@ -38,8 +38,8 @@ const FacturesPage = () => { const [facture, setFacture] = useState({ id: '', numero: '', - dateEmission: new Date(), - dateEcheance: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000), + dateEmission: new Date().toISOString(), + dateEcheance: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toISOString(), datePaiement: null, objet: '', description: '', @@ -113,8 +113,8 @@ const FacturesPage = () => { setFacture({ id: '', numero: '', - dateEmission: new Date(), - dateEcheance: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000), + dateEmission: new Date().toISOString(), + dateEcheance: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toISOString(), datePaiement: null, objet: '', description: '', @@ -220,8 +220,8 @@ const FacturesPage = () => { setFacture({ id: '', numero: '', - dateEmission: new Date(), - dateEcheance: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000), + dateEmission: new Date().toISOString(), + dateEcheance: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toISOString(), datePaiement: null, objet: '', description: '',