fix: washing dates format
All checks were successful
it-academy/dry-wash-pl/pipeline/head This commit looks good

This commit is contained in:
RustamRu 2025-01-19 11:04:44 +03:00
parent e73773f359
commit 5ed023866e

View File

@ -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(),
}
};
};