dosubot[bot] commented on issue #36491:
URL: https://github.com/apache/superset/issues/36491#issuecomment-3636521470

   <!-- Answer -->
   The difference between the selected time zone text and the displayed value 
is due to how Superset's TimezoneSelector component normalizes and deduplicates 
time zone options. When you select a time zone, the component tries to match it 
to a canonical IANA time zone name and generates display labels using a mapping 
of GMT offsets to user-friendly names (like "Hawaii Standard Time" or "Central 
European Time"). If your selection doesn't exactly match an available option, 
Superset falls back to a valid time zone with the same offset, which can result 
in the displayed text being different from what you originally selected—even 
though the underlying value is correct and the scheduled jobs run in the 
intended time zone. This is expected behavior based on the current 
implementation 
[source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/packages/superset-ui-core/src/components/TimezoneSelector/index.tsx).
   
   There are ongoing discussions about improving user-level time zone handling 
and display consistency, but for now, this normalization and fallback logic is 
how Superset manages time zone selection and display 
[source](https://github.com/apache/superset/issues/35422). If you need more 
consistent display text, consider using canonical IANA time zone names for 
selection and monitoring future updates related to user preferences and time 
zone features.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/9c2f4428-e99f-41f8-935a-453ec872ec11?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/9c2f4428-e99f-41f8-935a-453ec872ec11?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/9c2f4428-e99f-41f8-935a-453ec872ec11?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/9c2f4428-e99f-41f8-935a-453ec872ec11?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/9c2f4428-e99f-41f8-935a-453ec872ec11?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/9c2f4428-e99f-41f8-935a-453ec872ec11?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/9c2f4428-e99f-41f8-935a-453ec872ec11?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20difference%20between%20the%20selected%20time%20zone%20text%20and%20the%20displayed%20value%20is%20due%20to%20how%20Superset%27s%20TimezoneSelector%20component%20normalizes%20and%20deduplicates%20time%20zone%20options.%20When%20you%20select%20a%20time%20zone%2C%20the%20component%20tries%20to%20match%20it%20to%20a%20canonical%20IANA%20time%20zone%20name%20and%20generates%20display%20labels%20using%20a%20mapping%20of%20GMT%20offsets%20to%20user-friendly%20names%20%28like%20%22Hawaii%20Standard%20Time%22%20or%20%22Central%20European%20Time%22%29.%20If%20your%20selection%20doesn%27t%20exactly%20match%20an%20available%20option%2C%20Superset%20falls%20back%20to%20a%20valid%20time%20zone%20with%20the%20same%20offset%2C%20which%20can%20result%20in%20t
 
he%20displayed%20text%20being%20different%20from%20what%20you%20originally%20selected%E2%80%94even%20though%20the%20underlying%20value%20is%20correct%20and%20the%20scheduled%20jobs%20run%20in%20the%20intended%20time%20zone.%20This%20is%20expected%20behavior%20based%20on%20the%20current%20implementation%20%5Bsource%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/packages/superset-ui-core/src/components/TimezoneSelector/index.tsx%29.%0A%0AThere%20are%20ongoing%20discussions%20about%20improving%20user-level%20time%20zone%20handling%20and%20display%20consistency%2C%20but%20for%20now%2C%20this%20normalization%20and%20fallback%20logic%20is%20how%20Superset%20manages%20time%20zone%20selection%20and%20display%20%5Bsource%5D%28https%3A//github.com/apache/superset/issues/35422%29.%20If%20you%20need%20more%20consistent%20display%20text%2C%20consider%20using%20canonical%20IANA%20time%20zone%20names%20for%20selection%20and%20monitoring%20
 
future%20updates%20related%20to%20user%20preferences%20and%20time%20zone%20features.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36491)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to