diff --git a/apps/web/components/booking/AvailableTimes.tsx b/apps/web/components/booking/AvailableTimes.tsx index 327fdb1b35..f64672627c 100644 --- a/apps/web/components/booking/AvailableTimes.tsx +++ b/apps/web/components/booking/AvailableTimes.tsx @@ -5,6 +5,8 @@ import Link from "next/link"; import { useRouter } from "next/router"; import React, { FC, useEffect, useState } from "react"; +import { nameOfDay } from "@calcom/lib/weekday"; + import classNames from "@lib/classNames"; import { useLocale } from "@lib/hooks/useLocale"; import { useSlots } from "@lib/hooks/useSlots"; @@ -41,7 +43,6 @@ const AvailableTimes: FC = ({ const { t, i18n } = useLocale(); const router = useRouter(); const { rescheduleUid } = router.query; - const { slots, loading, error } = useSlots({ date, slotInterval, @@ -64,7 +65,7 @@ const AvailableTimes: FC = ({
- {date.toDate().toLocaleString(i18n.language, { weekday: "long" })} + {nameOfDay(i18n.language, Number(date.format("d")))} {date.format(", D ")} {date.toDate().toLocaleString(i18n.language, { month: "long" })}