diff --git a/packages/features/ee/users/components/UserForm.tsx b/packages/features/ee/users/components/UserForm.tsx index 87b2463fa2..023ad16ebf 100644 --- a/packages/features/ee/users/components/UserForm.tsx +++ b/packages/features/ee/users/components/UserForm.tsx @@ -3,6 +3,7 @@ import { noop } from "lodash"; import { Controller, useForm } from "react-hook-form"; import { TimezoneSelect } from "@calcom/features/components/timezone-select"; +import { formatToLocalizedDate } from "@calcom/lib/dayjs"; import { getUserAvatarUrl } from "@calcom/lib/getAvatarUrl"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { defaultLocaleOption, localeOptions } from "@calcom/lib/i18n"; @@ -32,7 +33,7 @@ type OptionValues = { type FormValues = Pick< User, - "avatarUrl" | "name" | "username" | "email" | "bio" | "theme" | "defaultScheduleId" | "allowDynamicBooking" + "avatarUrl" | "name" | "username" | "email" | "bio" | "createdDate" | "theme" | "defaultScheduleId" | "allowDynamicBooking" > & OptionValues; @@ -146,6 +147,14 @@ export const UserForm = ({ )} /> + {defaultValues?.createdDate && ( +
+ +
+ {formatToLocalizedDate(new Date(defaultValues.createdDate), localeProp)} +
+
+ )}