GitHub user dosubot[bot] added a comment to the discussion: how to configure the timezone of the Apache Superset backend
<!-- Answer --> Apache Superset backend assumes all timestamps are in UTC and displays them as such by design. Changing the backend timezone (for example, by setting the TZ environment variable or using SUPERSET_TIMEZONE in superset_config.py) will not affect how timestamps are displayed in reports. The recommended best practice is to keep both your database engine and Superset backend in UTC to avoid inconsistencies. For more details, see the official documentation on timezones and related discussions: [Superset Timezone Configuration](https://github.com/apache/superset/blob/master/docs/docs/configuration/timezones.mdx), [issue discussion](https://github.com/apache/superset/issues/33570). If you need to override backend configuration for other purposes, you can do so by creating a superset_config.py file in your PYTHONPATH, as described in [superset/config.py](https://github.com/apache/superset/blob/master/superset/config.py), but this will not change the backend timezone behavior. <!-- 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/04966672-8089-4fbf-a500-cab5b25d8eb6?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/04966672-8089-4fbf-a500-cab5b25d8eb6?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/04966672-8089-4fbf-a500-cab5b25d8eb6?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/04966672-8089-4fbf-a500-cab5b25d8eb6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/04966672-8089-4fbf-a500-cab5b25d8eb6?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/04966672-8089-4fbf-a500-cab5b25d8eb6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/04966672-8089-4fbf-a500-cab5b25d8eb6?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/35878) GitHub link: https://github.com/apache/superset/discussions/35878#discussioncomment-14810066 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
