Skip to content

Commit ece9f73

Browse files
committed
fix(date-input): javascript dates set to beginning of day now
1 parent 892cc7e commit ece9f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui-components/src/lib/inputs/InputDate/InputDate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const InputDate: FC<InputDateProps> = ({
5252
onChange={(dateTime: DateTime | null, keyboardInputValue?: string | undefined) => {
5353
if (!dateTime) return setInputValue(null);
5454

55-
const dateValue = valueFormat ? dateTime.toFormat(valueFormat) : dateTime.toJSDate();
55+
const dateValue = valueFormat ? dateTime.toFormat(valueFormat) : dateTime.startOf('day').toJSDate();
5656

5757
if (formikProps?.setFieldValue) {
5858
if (!dateTime.isValid) {

0 commit comments

Comments
 (0)