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

   <!-- Answer -->
   The issue with the "Now" button using UTC instead of the local timezone is a 
known limitation in Superset. Superset has implicit assumptions that timestamps 
are in UTC, which can lead to discrepancies when using features like the "Now" 
button in time filters 
<sup>[[1]](https://github.com/apache/superset/blob/master/docs/docs/configuration/timezones.mdx)</sup>.
   
   To address this, you can try configuring the timezone in your Superset 
environment to ensure it matches your desired local timezone. This involves 
setting the timezone for both the Superset backend and the database engine to 
ensure consistency. It's recommended to use UTC for both to avoid issues, but 
if you need to use a local timezone, ensure that both are configured 
accordingly 
<sup>[[1]](https://github.com/apache/superset/blob/master/docs/docs/configuration/timezones.mdx)</sup>.
   
   Additionally, you can use the `TimezoneSelector` component to select and 
apply the local timezone dynamically in the frontend. This component allows 
users to choose from a list of timezones, ensuring that Superset uses the 
correct timezone for data visualization and exploration 
<sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/src/components/TimezoneSelector/index.tsx)</sup>.
   
   If the issue persists, you may need to check for any updates or patches that 
address this specific problem in your version of Superset.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


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