Skip to content

Commit

Permalink
fix(@clayui/date-picker): LPD-46943 Fix date format when use12Hours true
Browse files Browse the repository at this point in the history
  • Loading branch information
ilzamcmed committed Jan 22, 2025
1 parent 6d44f93 commit c73a4eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/clay-date-picker/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ const ClayDatePicker = React.forwardRef<HTMLInputElement, IProps>(

if (startDate.toString() !== 'Invalid Date') {
const hours = use12Hours
? formatDate(startDate, 'HH')
: formatDate(startDate, 'hh');
? formatDate(startDate, 'hh')
: formatDate(startDate, 'HH');

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

Expand Down

0 comments on commit c73a4eb

Please sign in to comment.