From 5ed023866e9a18750107f41aa1d0aca80504b78e Mon Sep 17 00:00:00 2001 From: RustamRu Date: Sun, 19 Jan 2025 11:04:44 +0300 Subject: [PATCH] fix: washing dates format --- src/components/order-form/form/helper.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(), } }; };