fix: Revert Date to ISO string conversions for local state objects (they expect Date not string)

This commit is contained in:
dahoud
2025-10-13 16:30:54 +00:00
parent bb19e2af0d
commit f22bfe5760
8 changed files with 10 additions and 10 deletions

View File

@@ -795,7 +795,7 @@ const SortiesPage = () => {
<Calendar
id="dateSortie"
value={exit.dateSortie}
onChange={(e) => setExit({...exit, dateSortie: e.value?.toISOString() || new Date().toISOString()})}
onChange={(e) => setExit({...exit, dateSortie: e.value || new Date()})}
showIcon
/>
</div>