fix type error

fix/booking-limits
CarinaWolli 2023-10-31 15:34:14 -04:00
parent a5f906b9b6
commit dae16fa6e9
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ export const stringOrNumber = z.union([
]);
export const stringToDayjs = z.string().transform((val) => {
const timezone = val.match(/([+-]\d{2}:\d{2})$/)[1];
const timezone = val.match(/([+-]\d{2}:\d{2})$/)[1] || "+00:00";
return dayjs(val).utcOffset(timezone);
});