mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 21:32:18 +00:00
The helper used `d.toISOString().slice(0, 10)` (UTC slice) but carried the generic `dayKey` name, inviting a contributor to swap in `userDayKey()` from `@/lib/tz/resolver` and silently shift the pairing key for non-near-UTC tenants. Rename to `bucketDayKey` and add a docstring spelling out why the UTC slice is correct here (both SYS and DIA buckets share UTC midnight; pairing is against each other, not against any user-local series).