From 4c29dfee9be26996ce548e2edf0328422df598d0 Mon Sep 17 00:00:00 2001 From: T Date: Mon, 4 Aug 2025 10:41:08 -0600 Subject: Fix time query parameters to force them to datetime format --- internal/commands/billable_rate_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/commands/billable_rate_test.go') diff --git a/internal/commands/billable_rate_test.go b/internal/commands/billable_rate_test.go index f9ce621..184d51f 100644 --- a/internal/commands/billable_rate_test.go +++ b/internal/commands/billable_rate_test.go @@ -174,8 +174,8 @@ func TestTimeEntryWithTimesCoalescing(t *testing.T) { // Create time entry with times but no explicit rate - should use project rate now := time.Now().UTC() timeEntry, err := q.CreateTimeEntryWithTimes(context.Background(), queries.CreateTimeEntryWithTimesParams{ - StartTime: now, - EndTime: sql.NullTime{Time: now.Add(time.Hour), Valid: true}, + StartTime: now.Format(time.DateTime), + EndTime: now.Add(time.Hour).Format(time.DateTime), Description: sql.NullString{String: "Test work", Valid: true}, ClientID: client.ID, ProjectID: sql.NullInt64{Int64: project.ID, Valid: true}, @@ -222,4 +222,3 @@ func TestTimeEntryCoalescingWithoutProject(t *testing.T) { t.Errorf("Expected billable_rate 7550, got %v", timeEntry.BillableRate) } } - -- cgit v1.2.3