Battery chart time labels shifted hours ahead on macOS 27 (endOfDay wrong in BatteryUI.plist)

the "last 24 hours" battery level and screen on usage charts in system settings > battery have the hour labels shifted way ahead of real time. the bars are in the right order, the axis is just wrong. at 17:13 it was showing stuff up to like 23:00. at 10:05 a few days later it was about 12 hours ahead. the "last charged to 100%" time above the chart is correct tho.

my clock and time zone are fine (asia/manila, set automatically, synced). the battery data itself is right too, i checked the power log and the plug in and unplug times match what actually happened.

i dug into it and found the problem in /private/var/db/powerlog/Library/BatteryLife/Debug/BatteryUI.plist, which is what the battery pane gets from PerfPowerServices. endOfDay comes back as the next hour instead of midnight:

PLBatteryUIQueryTime   2026-10-24 17:13:25 (local)
endOfHour              2026-10-24 18:00:00  <- correct
endOfDay               2026-10-24 18:00:00  <- should be 2026-10-25 00:00:00

so the chart puts 00:00 at 18:00 yesterday and everything ends up 6 hours off. it looks like the chart always labels its right edge as 24:00, so the further you are from midnight the worse it gets.

restarting PerfPowerServices (sudo killall PerfPowerServices) doesn't fix it, the new process sends the same values right away.

macos 27.0.1 (26A434). this was fine on macos 26. looks like the same bug as https://developer.apple.com/forums/thread/852392