fix: Convert Date to string for all remaining date fields in stock pages

This commit is contained in:
dahoud
2025-10-13 09:52:21 +00:00
parent 4b19fed103
commit 7517745505
3 changed files with 15 additions and 15 deletions

View File

@@ -792,11 +792,11 @@ const SortiesPage = () => {
<div className="field col-12 md:col-4">
<label htmlFor="dateSortie">Date de sortie</label>
<Calendar
id="dateSortie"
value={exit.dateSortie}
onChange={(e) => setExit({...exit, dateSortie: e.value || new Date()})}
showIcon
<Calendar
id="dateSortie"
value={exit.dateSortie}
onChange={(e) => setExit({...exit, dateSortie: e.value?.toISOString() || new Date().toISOString()})}
showIcon
/>
</div>