Skip to content

fix: reject add/note times that fall on a previous day - #4

Merged
markspl merged 1 commit into
mainfrom
fix/reject-previous-day-entries
Nov 8, 2026
Merged

markspl merged 1 commit into
mainfrom
fix/reject-previous-day-entries

Conversation

@markspl

@markspl markspl commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Summary

Don't allow adding new logs on a previous day.

Changes

  • Add _resolve_time which parses -t value and rejects a time if different day than now. Shows an error message.
  • Update add/note tests to check logs are added on current day only

@markspl
markspl merged commit dda2abe into main Nov 8, 2026
1 check passed
@markspl
markspl deleted the fix/reject-previous-day-entries branch November 8, 2026 18:56
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