diff --git a/src/components/structures/LoggedInView.tsx b/src/components/structures/LoggedInView.tsx index 1a92748375a..a77b9a31855 100644 --- a/src/components/structures/LoggedInView.tsx +++ b/src/components/structures/LoggedInView.tsx @@ -205,7 +205,6 @@ class LoggedInView extends React.Component { } private onTimezoneUpdate = async (): Promise => { - console.log("Triggering timezoen update", SettingsStore); if (!SettingsStore.getValue("userTimezonePublish")) { // Ensure it's deleted try { @@ -215,7 +214,9 @@ class LoggedInView extends React.Component { } return; } - const currentTimezone = SettingsStore.getValue("userTimezone"); + const currentTimezone = SettingsStore.getValue("userTimezone") + // If the timezone is empty, then use the browser timezone. + || Intl.DateTimeFormat().resolvedOptions().timeZone; if (!currentTimezone || typeof currentTimezone !== "string") { return; }