KRILabs01 opened a new issue, #40871:
URL: https://github.com/apache/superset/issues/40871

   ### Bug description
   
   When attempting to apply a hours offset to the dataset the day time interval 
will adjust as well. For Example if I set the hours offset to -4 Instead of the 
day grouping 24 hours starting at 12am like its expected. it will group 24 
hours starting at 8pm. Which groups the counts from 8pm-12am to the incorrect 
day prior. 
   
   Please see the screenshots below. 
   
   ### Screenshots/recordings
   
   Data is being pulled from a ms sql server in UTC Time.
   Docker container and Linux host are both set to UTC
   
   Currently im running into a problem where when i apply the "Hours Offset" to 
the dataset it shows in the correct TZ but when setting the interval to Day it 
looks like its only counting till 8pm. then puts anything from 8pm-12am to the 
next day.
   
   Attachment shows -4 offset for the dataset. 
   <img width="440" height="151" alt="Image" 
src="https://github.com/user-attachments/assets/a54f1449-5804-4b32-945d-b28ee59d2a4e";
 />
   
   Attachment shows when hovering over a day interval that the end time is 8pm, 
Removing the -4 offset will group the counts correctly.
   <img width="1187" height="901" alt="Image" 
src="https://github.com/user-attachments/assets/0fb2c812-ba97-4486-801c-70599261bddb";
 />
   
   The test I ran was setting the interval to "day" and "Hour" with the offset 
on and off to see where the count would land. 
   
   Actual time in UTC from the db :2026-06-02 12:57:16
   
   (offset 0) When grouped by hour it groups into 2026-06-02 12:00:00
   (offset 0) When Grouped by Day it groups to 2026-06-02 00:00:00
   (offset -4) When grouped by hour it goes to 2026-06-02 08:00:00
   (offset -4) When grouped by Day it groups to 2026-06-01 20:00:00
   
   Offset set to -4 shows the correct time but groups into the wrong day
   <img width="1762" height="445" alt="Image" 
src="https://github.com/user-attachments/assets/c1a6ce68-3f6f-46a9-801f-eb8a59df0c46";
 />
   
   Offset set to 0 showing the correct day but in UTC time
   <img width="1743" height="458" alt="Image" 
src="https://github.com/user-attachments/assets/c6dbf291-526c-4a8d-be10-154394f68697";
 />
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


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