diff --git a/src/components/order-form/form/helper.ts b/src/components/order-form/form/helper.ts index 53f8bd8..63ea809 100644 --- a/src/components/order-form/form/helper.ts +++ b/src/components/order-form/form/helper.ts @@ -1,6 +1,7 @@ import { useTranslation } from "react-i18next"; import { getConfigValue } from '@brojs/cli'; import { InputProps, SelectProps } from "@chakra-ui/react"; +import dayjs from "dayjs"; import { Order } from "../../../models/landing"; @@ -51,8 +52,8 @@ export const formatFormValues = ({ phone, carNumber, carBody, carColor, carLocat }, washing: { location: carLocation, - begin: availableDatetimeBegin, - end: availableDatetimeEnd, + begin: dayjs(availableDatetimeBegin).toISOString(), + end: dayjs(availableDatetimeEnd).toISOString(), } }; };