fix: Replace timeFormat with hourFormat in Calendar components

This commit is contained in:
dahoud
2025-10-15 21:37:10 +00:00
parent b5916fbe35
commit c683edb250

View File

@@ -926,26 +926,26 @@ const CalendrierPlanningPage = () => {
<div className="field col-12 md:col-6"> <div className="field col-12 md:col-6">
<label htmlFor="start">Date/Heure début</label> <label htmlFor="start">Date/Heure début</label>
<Calendar <Calendar
id="start" id="start"
value={newEvent.start} value={newEvent.start}
onChange={(e) => setNewEvent({...newEvent, start: e.value as Date})} onChange={(e) => setNewEvent({...newEvent, start: e.value as Date})}
showTime showTime
hourFormat="24"
dateFormat="dd/mm/yy" dateFormat="dd/mm/yy"
timeFormat="24"
className="w-full" className="w-full"
/> />
</div> </div>
<div className="field col-12 md:col-6"> <div className="field col-12 md:col-6">
<label htmlFor="end">Date/Heure fin</label> <label htmlFor="end">Date/Heure fin</label>
<Calendar <Calendar
id="end" id="end"
value={newEvent.end} value={newEvent.end}
onChange={(e) => setNewEvent({...newEvent, end: e.value as Date})} onChange={(e) => setNewEvent({...newEvent, end: e.value as Date})}
showTime showTime
hourFormat="24"
dateFormat="dd/mm/yy" dateFormat="dd/mm/yy"
timeFormat="24"
className="w-full" className="w-full"
/> />
</div> </div>