BhanuNidumolu commented on PR #3962:
URL: https://github.com/apache/hertzbeat/pull/3962#issuecomment-3750613206

   ### Verification – Midnight & DST Boundary
   
   I reproduced the midnight boundary case by inserting two records into the 
HertzBeat H2 store (HZB_STATUS_PAGE_HISTORY):
   
   - 2026-01-13 23:59:59 → ABNORMAL  
   - 2026-01-14 00:00:01 → NORMAL  
   
   This creates a real midnight-crossing outage.
   
   With the new implementation:
   - A single Instant is used for now and todayStart
   - Day boundaries are computed via Instant + ZoneId (not minusSeconds)
   - Sorting uses Long.compare
   
   Result:
   Both sliding 24-hour windows correctly include the 300s outage and render 
consistent uptime on the Status Page (red + green bars).  
   No inverted ranges or DST errors occur.
   
   Screenshots attached.
   <img width="1791" height="853" alt="Screenshot 2026-01-14 215732" 
src="https://github.com/user-attachments/assets/3ad8c4f9-11d1-4f51-907c-03cf8d7fc441";
 />
   <img width="1683" height="763" alt="Screenshot 2026-01-14 215740" 
src="https://github.com/user-attachments/assets/d60a6afa-a25e-47f4-a4e4-ab75d2f4a828";
 />
   


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