feature/IO-3497-Ant-Design-v5-to-v6 - Signed off Files
This commit is contained in:
@@ -131,10 +131,7 @@ const DateTimePicker = ({
|
||||
if (timeValue) {
|
||||
// When time changes, combine it with the existing date
|
||||
const existingDate = dayjs(value);
|
||||
const newDateTime = existingDate
|
||||
.hour(timeValue.hour())
|
||||
.minute(timeValue.minute())
|
||||
.second(0);
|
||||
const newDateTime = existingDate.hour(timeValue.hour()).minute(timeValue.minute()).second(0);
|
||||
handleChange(newDateTime);
|
||||
} else {
|
||||
// If time is cleared, just update with null time but keep date
|
||||
|
||||
Reference in New Issue
Block a user