mirror of
https://github.com/Sea-Haven-Industries/front-integrations.git
synced 2026-09-30 11:53:12 +00:00
_business_minutes_elapsed clamped each weekday span to midnight instead of BH_END, and never applied BH_START, so overnight hours (17:00-08:00) were counted as business time. BH_START/BH_END were defined but unused in the calculation. A ticket opened Fri 16:00 and evaluated Mon 10:00 scored 1080 min instead of the correct 180 min (6x overcount), flipping a tier-1 breach into a false tier-2 page. Clamp each weekday to the [BH_START, BH_END) window and only accrue the overlap with [since, now); weekends remain excluded. Holidays are still unhandled (pre-existing, separate gap). Found by the daily scanner (agentic, CWE-440); proof-or-kill confirmed. |
||
|---|---|---|
| .. | ||
| sla_monitor | ||
| user_sync | ||