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

   <!-- Greeting -->
   Hello @alexanderkoek! I'm here to help you with any bugs, questions, or 
contributions you have for the project. Let's take a look at the issue you've 
reported and see how we can solve it together.
   
   <!-- Answer -->
   The issue you're experiencing with the "Now" button in the time filter not 
accounting for the correct timezone is known. The expected behavior is for the 
"Now" button to return the current date and time adjusted to the specified 
timezone. Tests indicate that when 'now' is used, the function 
`parseDttmToDate` should return the current date and time in the specified 
timezone, such as 'Etc/GMT-2' for the Netherlands during summer time 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/packages/superset-ui-core/test/time-comparison/parseDttmToDate.test.ts)</sup>.
   
   The logic for handling the 'Now' button is implemented in the `CustomFrame` 
component within the file 
`superset-frontend/src/explore/components/controls/DateFilterControl/components/CustomFrame.tsx`.
 The `onAnchorMode` function updates the `anchorValue` to 'now' when the 'Now' 
button is selected 
<sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/src/explore/components/controls/DateFilterControl/components/CustomFrame.tsx)</sup>.
   
   It seems like there might be an issue with how the timezone is being applied 
when using the "Now" button. You might want to check if the timezone settings 
are correctly configured in your environment or if there are any updates or 
patches available that address this issue.
   
   
   <!-- 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