Skip to content

fix(history): split sessions crossing midnight across days - #39

Merged
ttncode merged 1 commit into
mainfrom
fix/midnight-session-split
Nov 9, 2026
Merged

ttncode merged 1 commit into
mainfrom
fix/midnight-session-split

Conversation

@ttncode

@ttncode ttncode commented Nov 9, 2026

Copy link
Copy Markdown
Owner

A session counted entirely on the day it started, so a 23:30 to 00:30 session put 60 minutes on the first day and none on the next.

  • Daily chart, today and week stats, week comparison, tag analytics, the today counter and History day totals now count each session's unpaused time inside each local day
  • Date range queries include sessions that overlap the range, not only those created in it
  • A session still appears once in Session History, under its start day
  • Date inputs and backup file names use the local date instead of UTC
  • Editing a session's start time moves it to the new day
  • The today counter refreshes at local midnight

A session counted entirely on the day it started, so work after midnight
was missing from the new day. Reports now count each session's unpaused
time inside each local day.

Also use the local date for date inputs and backup names, follow edited
start times, and refresh the today counter at midnight.
@ttncode
ttncode merged commit 904a5c6 into main Nov 9, 2026
3 checks passed
@ttncode
ttncode deleted the fix/midnight-session-split branch November 9, 2026 16:49
@ttncode ttncode mentioned this pull request Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant