Skip to content

Commit c73a4eb

Browse files
committed
fix(@clayui/date-picker): LPD-46943 Fix date format when use12Hours true
1 parent 6d44f93 commit c73a4eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
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)