Skip to content

Commit

Permalink
Merge pull request #378 from webbeetechnologies/fix/bugs
Browse files Browse the repository at this point in the history
fix: date time picker bug
  • Loading branch information
thetaungg authored Feb 5, 2025
2 parents de237d2 + 7a13ba3 commit ac93e45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bambooapp/bamboo-molecules",
"version": "0.4.5",
"version": "0.4.6",
"repository": {
"type": "git",
"url": "git+https://github.com/webbeetechnologies/bamboo-molecules.git"
Expand Down
10 changes: 5 additions & 5 deletions src/components/DateTimePicker/DateTimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ const emptyObj = {};
const normalizeDateWithCurrentTime = (specificDate: Date) => {
const date = new Date();

date.setFullYear(specificDate.getFullYear());
date.setMonth(specificDate.getMonth());
date.setDate(specificDate.getDate());

return date;
return set(specificDate, {
hours: date.getHours(),
minutes: date.getHours(),
seconds: date.getSeconds(),
});
};

const DateTimePicker = (
Expand Down

0 comments on commit ac93e45

Please sign in to comment.