Default value of user profile timezone picker is misleading

AI-generated summary

The discussion revolves around a misleading default value in the user profile timezone picker, which displays “Africa” instead of the user’s current timezone. danekhollas initially found this confusing, as it appeared the timezone was incorrectly set. codinghorror questioned the location of the setting, leading to clarification that it might stem from a calendar plugin. Stranik suggested the issue could be related to the discourse-calendar plugin, referencing its locale configuration. danekhollas clarified that the events plugin is different from the calendar plugin. pmusaraj pointed to a proposed fix that would display “Select a timezone…” when no timezone is set, but danekhollas questioned whether the fix also addresses the issue when a timezone is already set. pmusaraj confirmed that the issue doesn’t occur when a timezone is set, as the saved value correctly displays upon refresh.

This lead me to think that I have incorrectly set the timezon to “Africa”, until I noticed the small text underneath. Why isn’t the picker set to the current value?

3 Likes

Where are you seeing this setting? I can’t find it in my preferences here on meta, so I’m unsure where this is from.

1 Like

I am seeing this at the bottom of my profile: https://forum.example.com/my/preferences/profile

Hmm, could this be from a Calendar plugin?

1 Like

This is quite possible if the plugin is installed:


 all_day: "All day"
 timezone: "Timezone"
 no_timezone: "Select a timezone"

Events plugin is different from Calendar plugin though. :slight_smile:

1 Like

I’m sorry, I hurried. In the calendar it is similarly there. (if this plugin) :wink:

This should fix the issue, it will show “Select a timezone…” if no timezone is yet set.

https://review.discourse.org/t/add-combo-box-label-when-no-user-timezone-is-set/5861

6 Likes

Hmm, but maybe I am misunderstanding, but the issue was also when the timezone was set, the picker still displayed “Africa”, as per my first screenshot. Or is this included in the fix?

I don’t see an issue when the timezone is set. I just set mine to something other than the detected timezone (the one displayed in small print below the field), and on a refresh, the saved timezone correctly displays in the input field.