You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 47bba41
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ohme,gateway): don't treat a still-active long window as a year rollover
Both parsers bumped a window's year forward whenever its parsed start was
more than 23h in the past, to handle a plan built just before New Year
carrying Jan 1 windows. But a genuinely active long/flat-rate window that
started well over 23h ago (its end still ahead of now) hit the same
heuristic and got shifted a year forward, dropping out of
should_charge_now()/_should_ev_charge_now() and stopping the charger
mid-window (#269, Copilot review on #5120).
Only bump the year when the window has also already finished (end < now)
- the signature of a genuine rollover artefact, not an active window.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments