From dd78d0e8773d3b7161e7e139de4993187bcf2a5d Mon Sep 17 00:00:00 2001 From: Billy Vong Date: Mon, 17 Nov 2025 17:14:31 -0500 Subject: [PATCH] feat(config): Remove log for tz mismatch No longer needed, see https://linear.app/getsentry/issue/DAIN-594/time-series-chart-x-axis-ticks-are-not-aligned-to-dates-when-system Manual revert of https://github.com/getsentry/sentry/pull/93330 --- static/app/stores/configStore.tsx | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/static/app/stores/configStore.tsx b/static/app/stores/configStore.tsx index 9a8b3d1531b1a6..638b105b68f776 100644 --- a/static/app/stores/configStore.tsx +++ b/static/app/stores/configStore.tsx @@ -1,4 +1,3 @@ -import * as Sentry from '@sentry/react'; import moment from 'moment-timezone'; import {createStore} from 'reflux'; @@ -12,8 +11,6 @@ interface ConfigStoreDefinition extends StrictStoreDefinition { set(key: K, value: Config[K]): void; } -const {warn} = Sentry.logger; - const storeConfig: ConfigStoreDefinition = { // When the app is booted we will _immediately_ hydrate the config store, // effecively ensuring this is not empty. @@ -47,21 +44,7 @@ const storeConfig: ConfigStoreDefinition = { // TODO(dcramer): abstract this out of ConfigStore if (this.state.user) { this.state.user.permissions = new Set(this.state.user.permissions); - - const systemTimeZone = moment.tz.guess(); - const userTimeZone = this.state.user.options.timezone; - - const nowInSystemTimezone = moment.tz(undefined, systemTimeZone); - const nowInUserTimezone = moment.tz(undefined, userTimeZone); - - if (nowInSystemTimezone.utcOffset() !== nowInUserTimezone.utcOffset()) { - warn('System time zone does not match user preferences time zone', { - systemTimeZone, - userTimeZone, - }); - } - - moment.tz.setDefault(userTimeZone); + moment.tz.setDefault(this.state.user.options.timezone); } this.trigger(this.state);