Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

Commit 19847ba

Browse files
committed
fix: Use 0 milliseconds when setting time
1 parent 0ab9b9d commit 19847ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Vue3DatePicker/utils/date-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const setDateTime = (
7474
if (seconds || seconds === 0) {
7575
dateCopy = setSeconds(dateCopy, +seconds);
7676
}
77-
return dateCopy;
77+
return setMilliseconds(dateCopy, 0);
7878
};
7979

8080
export const getNextMonthYear = (date: Date): { month: number; year: number } => {

0 commit comments

Comments
 (0)