You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "stgztsw (via GitHub)" <gi...@apache.org> on 2025/10/29 03:06:45 UTC
[D] how to configure the timezone of the Apache Superset backend [superset]
GitHub user stgztsw created a discussion: how to configure the timezone of the Apache Superset backend
how to configure the timezone of the Apache Superset backend
GitHub link: https://github.com/apache/superset/discussions/35878
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] how to configure the timezone of the Apache Superset backend [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
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 notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] how to configure the timezone of the Apache Superset backend [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on 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?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=04966672-8089-4fbf-a500-cab5b25d8eb6) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/35878#discussioncomment-14810066
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org