fix: add a default timezone (#11475)
Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user