Skip to content

Commit 1638021

Browse files
Merge pull request #5923 from ilzamcmed/LPD-46943
fix(@clayui/date-picker): LPD-46943 The Date Picker component shows time using the wrong format
2 parents aa3c008 + c73a4eb commit 1638021

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/clay-date-picker/src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ const ClayDatePicker = React.forwardRef<HTMLInputElement, IProps>(
346346

347347
if (startDate.toString() !== 'Invalid Date') {
348348
const hours = use12Hours
349-
? formatDate(startDate, 'HH')
350-
: formatDate(startDate, 'hh');
349+
? formatDate(startDate, 'hh')
350+
: formatDate(startDate, 'HH');
351351

352352
const minutes = formatDate(startDate, 'mm');
353353

0 commit comments

Comments
 (0)