mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 08:07:40 +08:00

When the user selects “Use Current Timezone” on Profile -> Preferences -> Profile, a call is made to `moment.tz.guess()`. https://momentjs.com/timezone/docs/#/using-timezones/guessing-user-timezone/ states that, by default, previously cached responses from this function will be returned upon subsequent calls. If your physical location has changed, this may result in a cached value being returned, and thus the timezone seemingly not being updating. By passing the `true` value to the function, the cache is bypassed, forcing an explicit recheck of the current timezone.