Skip to content

Commit

Permalink
Merge pull request #5923 from ilzamcmed/LPD-46943
Browse files Browse the repository at this point in the history
fix(@clayui/date-picker): LPD-46943 The Date Picker component shows time using the wrong format
  • Loading branch information
matuzalemsteles authored Jan 22, 2025
2 parents aa3c008 + c73a4eb commit 1638021
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 1638021

Please sign in to comment.