Skip to content

Commit

Permalink
Set the getNow prop to the date picker so that the now will make use …
Browse files Browse the repository at this point in the history
…of dayjs that has timezone set.
  • Loading branch information
deepakjosp committed Oct 30, 2024
1 parent eb90348 commit 5c0f888
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/DatePicker/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ const DatePicker = forwardRef(
},
}),
}}
getNow={dayjs}
nextIcon={<IconOverride icon={Right} />}
prevIcon={<IconOverride icon={Left} />}
superNextIcon={<IconOverride icon={Right} />}
Expand Down

0 comments on commit 5c0f888

Please sign in to comment.