Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Fixed
- deepsource suggestions

- deepsource suggestions
- `last` alias on `show`, `clone`, `edit` and `edit-multiple` would select future time entries if they
existed, now only time entries started before now will be considered

## [v0.54.1] - 2025-06-20

Expand Down
3 changes: 3 additions & 0 deletions pkg/timeentryhlp/timeentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

"github.com/lucassabreu/clockify-cli/api"
"github.com/lucassabreu/clockify-cli/api/dto"
"github.com/lucassabreu/clockify-cli/pkg/timehlp"
"github.com/pkg/errors"
)

Expand Down Expand Up @@ -87,10 +88,12 @@ func GetTimeEntry(
}
}

now := timehlp.Now()
list, err := c.GetUserTimeEntries(api.GetUserTimeEntriesParam{
Workspace: workspace,
UserID: userID,
OnlyInProgress: onlyInProgress,
End: &now,
PaginationParam: api.PaginationParam{
PageSize: 1,
Page: page,
Expand Down
Loading