fix(export): use UTC timestamps in CSV export - #2483
Conversation
Building a plain (local) DateTime from a UTC end date's wall-clock fields shifted the inclusive-day boundary by the device's UTC offset, so the same export included or excluded edge transactions depending on the machine's timezone. Round up in UTC when the input is UTC.
|
Claude finished @ethicnology's task in 2m 12s —— View job Audit: fix(export): use UTC timestamps in CSV export
Verdict: correct, minimal, and safe to merge. The fix does exactly what the commit message says — it preserves the input's UTC-ness when rounding the end date up to the next day — and it fixes a real, timezone-dependent bug. The bug is realBefore this change,
Notably, the existing test Things I verified
Optional follow-ups (non-blocking)
I could not run |
|
@bullock can you handle that: Pin the exclusive boundary in a test. The "after" tx sits at 00:01; a tx at exactly 2026-01-16T00:00:00Z (excluded) and one at 2026-01-15T23:59:59Z (included) would pin the boundary precisely. Fix this → |
|
@bullock can you handle that: Pin the exclusive boundary in a test. The "after" tx sits at 00:01; a tx at exactly 2026-01-16T00:00:00Z (excluded) and one at 2026-01-15T23:59:59Z (included) would pin the boundary precisely. Fix this → |
|
🐂 Done — Bullock opened #2489 targeting |
Fixes local vs. UTC timestamp handling in the transaction CSV export.
Merge order: independent — any time after #2443. No dependency on PR1-PR5, PR6.
#2443 → PR7 (this)