BhanuNidumolu opened a new pull request, #3962:
URL: https://github.com/apache/hertzbeat/pull/3962

   ## What's changed?
   
   Fixed incorrect date and day-boundary calculations on the Status Page by 
switching from LocalDateTime/ZoneOffset to a timezone-safe Instant + ZoneId 
based approach.
   
   This ensures:
   - Daily status buckets always align to real calendar days
   - No shifting or duplication of days across timezones or DST changes
   - Correct 30-day uptime history on the status page
   
   The logic was updated in:
   - queryComponentsStatus
   - queryComponentStatus
   
   to use:
   - start-of-day calculation via ZoneId
   - safe backward day iteration using epoch seconds
   
   This resolves the wrong day grouping shown on the Status Page.
   
   ## Checklist
   
   - [x] I have read the Contributing Guide
   - [x] I have added code comments where logic changed
   - [x] I ran the test suite and all tests passed
   
   ## Add or update API
   
   - [ ] No API changes
   


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