fix: /retro midnight-aligned dates + local timezone (v0.7.2) (#199)

* fix: use midnight-aligned dates and local timezone in /retro

/retro was using --since="7 days ago" which is relative to current time,
so running at 9pm gives a misleading "Mar 11 to Mar 18" title when data
actually starts at 9pm Mar 11. Now computes absolute midnight-aligned
start dates (--since="2026-03-11") for full calendar days.

Also removes hardcoded Pacific time (TZ=America/Los_Angeles) throughout
the template — all timestamps now use the user's local timezone, which
is correct for a global user base.

* chore: bump version and changelog (v0.7.2)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-03-18 23:42:15 -05:00
committed by GitHub
parent 4fe0ce9cba
commit 2a206920ed
4 changed files with 32 additions and 23 deletions
+7
View File
@@ -1,5 +1,12 @@
# Changelog
## [0.7.2] - 2026-03-18
### Fixed
- `/retro` date ranges now align to midnight instead of the current time. Running `/retro` at 9pm no longer silently drops the morning of the start date — you get full calendar days.
- `/retro` timestamps now use your local timezone instead of hardcoded Pacific time. Users outside the US-West coast get correct local hours in histograms, session detection, and streak tracking.
## [0.7.1] - 2026-03-19
### Added