I'm using Mantine's TimeInput component which defaults to 12-hour format with AM/PM. How can I change it to display time in 24-hour format instead?
Current implementation:
<TimeInput
size="md"
label="Start time"
leftSection={<PiClock size={24} className="text-secondary" />}
value={startTime}
maxTime={endTime}
onChange={handleStartTimeChange}
className="w-full"
styles={{
input: {
fontFamily: 'inherit',
},
}}
classNames={{ section: styles.section }}
data-testid="start-time-input"
/>
I want to remove the AM/PM indicator and show times like "14:30" instead of "2:30 PM". Is there a prop or configuration for this?