lingguang commented on issue #12434:
URL: https://github.com/apache/druid/issues/12434#issuecomment-1731118767

   If you try my test program by changing the timezone to GMT:
   DateTimeZone tz = DateTimeZone.forID("GMT");
   
   origin               2022-03-27T08:35:00.000Z
   -21D(expected)       2022-03-06T08:35:00.000Z
   -14D         2022-03-13T08:35:00.000Z
   -14D-7D              2022-03-06T08:35:00.000Z
   
   both -21D and -14D-7D will get the same correct result. So the problem only 
exists for the timezone with DST transition.
   
   It is expected to maintain the time bucket according to the user specified 
timezone, and it may have different results for different timezones.
   So in this case:
   if the timezone is GMT, the result should be 2022-03-06T08:35:00.000Z
   if the timezone is America/Denver, the result should be 
2022-03-06T02:35:00.000-07:00
   
   


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