Skip to content

log --today does not always output all time entries #88

@mabego

Description

@mabego

The problem

I've noticed that depending on the time of day log --today may or may not output all time entries for that day.

The discussion from the thread linked below mentions that the time.Truncate method truncates UTC time, not local time.

I believe the fix is to set start in the logToday condition in cmd/history/log.go to the beginning of the current day of the user's local time rather than use the time.Truncate method.

I created PR #89 with this update.

log --week may have a similar issue.

Release version

0.5.2 (02-18-2026)

Operating system

Windows 10

Steps to reproduce the behavior

No response

Screenshots

No response

Additional context

Return local beginning of day time object

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: awaiting triageWaiting for an issue to be addressed.type: bugAn issue that contains a bug report.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions