fix: add a default timezone (#11475)

Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
Udit TakkarandAlex van Andel authored and GitHub committed 2023-09-25 15:08:41 +02:00
1 parent 1d4eeab33e
commit 13caf6f2cd
10 files changed
+17 -10

No files matched your search

@@ -12,7 +12,7 @@ export default function TimezoneChangeDialog() {
const { data: user, isLoading } = trpc.viewer.me.useQuery();
const utils = trpc.useContext();
const userTz = user?.timeZone;
const currentTz = dayjs.tz.guess();
const currentTz = dayjs.tz.guess() || "Europe/London";
const formattedCurrentTz = currentTz?.replace("_", " ");
// update user settings