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

   <!-- Answer -->
   The inconsistent datetime shifts you’re seeing in charts versus SQL Lab are 
caused by dataset-level offset and time shift adjustments applied during 
visualization processing. SQL Lab returns raw database values, but chart 
queries go through a normalization step that applies any configured offset 
(like the “Hours Offset” in the Edit Dataset modal) and time shift metadata to 
datetime columns. If these settings are misconfigured or set inconsistently, 
you’ll see unpredictable shifts across data points in charts, while SQL Lab 
remains unaffected. This is a known issue, especially when working across 
timezones or using relative time filters, since Superset currently calculates 
ranges in UTC and doesn’t always display timezone metadata in charts or 
filters. There’s ongoing work to improve timezone handling and add user 
timezone selection, but for now, check your dataset’s offset and time shift 
settings and ensure they’re consistent and correct for your use case. More det
 ails and proposals are discussed 
[here](https://github.com/apache/superset/issues/35422) and 
[here](https://github.com/apache/superset/discussions/35295).
   
   
   <!-- 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/4e888ac1-3807-4603-abeb-9a2ab1c99b72?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/4e888ac1-3807-4603-abeb-9a2ab1c99b72?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/4e888ac1-3807-4603-abeb-9a2ab1c99b72?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/4e888ac1-3807-4603-abeb-9a2ab1c99b72?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/4e888ac1-3807-4603-abeb-9a2ab1c99b72?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/4e888ac1-3807-4603-abeb-9a2ab1c99b72?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/4e888ac1-3807-4603-abeb-9a2ab1c99b72?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%20inconsistent%20datetime%20shifts%20you%E2%80%99re%20seeing%20in%20charts%20versus%20SQL%20Lab%20are%20caused%20by%20dataset-level%20offset%20and%20time%20shift%20adjustments%20applied%20during%20visualization%20processing.%20SQL%20Lab%20returns%20raw%20database%20values%2C%20but%20chart%20queries%20go%20through%20a%20normalization%20step%20that%20applies%20any%20configured%20offset%20%28like%20the%20%E2%80%9CHours%20Offset%E2%80%9D%20in%20the%20Edit%20Dataset%20modal%29%20and%20time%20shift%20metadata%20to%20datetime%20columns.%20If%20these%20settings%20are%20misconfigured%20or%20set%20inconsistently%2C%20you%E2%80%99ll%20see%20unpredictable%20shifts%20across%20data%20points%20in%20charts%2C%20while%20SQL%20Lab%20remains%20unaffected.%20This%
 
20is%20a%20known%20issue%2C%20especially%20when%20working%20across%20timezones%20or%20using%20relative%20time%20filters%2C%20since%20Superset%20currently%20calculates%20ranges%20in%20UTC%20and%20doesn%E2%80%99t%20always%20display%20timezone%20metadata%20in%20charts%20or%20filters.%20There%E2%80%99s%20ongoing%20work%20to%20improve%20timezone%20handling%20and%20add%20user%20timezone%20selection%2C%20but%20for%20now%2C%20check%20your%20dataset%E2%80%99s%20offset%20and%20time%20shift%20settings%20and%20ensure%20they%E2%80%99re%20consistent%20and%20correct%20for%20your%20use%20case.%20More%20details%20and%20proposals%20are%20discussed%20%5Bhere%5D%28https%3A//github.com/apache/superset/issues/35422%29%20and%20%5Bhere%5D%28https%3A//github.com/apache/superset/discussions/35295%29.)&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://twi
 
tter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/37925)


-- 
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