diff --git a/internal/pkg/client/clockify/clockify_test.go b/internal/pkg/client/clockify/clockify_test.go index bd8d36e..421b7be 100644 --- a/internal/pkg/client/clockify/clockify_test.go +++ b/internal/pkg/client/clockify/clockify_test.go @@ -58,8 +58,8 @@ func newMockServer(t *testing.T, opts *mockServerOpts) *httptest.Server { } func TestClockifyClient_FetchEntries(t *testing.T) { - start := time.Date(2021, 10, 2, 0, 0, 0, 0, time.Local) - end := time.Date(2021, 10, 2, 23, 59, 59, 0, time.Local) + start := time.Date(2021, 10, 2, 0, 0, 0, 0, time.UTC) + end := time.Date(2021, 10, 2, 23, 59, 59, 0, time.UTC) remainingCalls := 1 expectedEntries := []worklog.Entry{ @@ -208,8 +208,8 @@ func TestClockifyClient_FetchEntries(t *testing.T) { } func TestClockifyClient_FetchEntries_TasksAsTags(t *testing.T) { - start := time.Date(2021, 10, 2, 0, 0, 0, 0, time.Local) - end := time.Date(2021, 10, 2, 23, 59, 59, 0, time.Local) + start := time.Date(2021, 10, 2, 0, 0, 0, 0, time.UTC) + end := time.Date(2021, 10, 2, 23, 59, 59, 0, time.UTC) remainingCalls := 1 expectedEntries := []worklog.Entry{ diff --git a/internal/pkg/client/tempo/tempo_test.go b/internal/pkg/client/tempo/tempo_test.go index b2b0e45..30e743b 100644 --- a/internal/pkg/client/tempo/tempo_test.go +++ b/internal/pkg/client/tempo/tempo_test.go @@ -103,8 +103,8 @@ func newMockServer(t *testing.T, opts *mockServerOpts) *httptest.Server { } func TestTempoClient_FetchEntries(t *testing.T) { - start := time.Date(2021, 10, 2, 0, 0, 0, 0, time.Local) - end := time.Date(2021, 10, 2, 23, 59, 59, 0, time.Local) + start := time.Date(2021, 10, 2, 0, 0, 0, 0, time.UTC) + end := time.Date(2021, 10, 2, 23, 59, 59, 0, time.UTC) clientUsername := "Thor" clientPassword := "The strongest Avenger" @@ -257,7 +257,7 @@ func TestTempoClient_FetchEntries(t *testing.T) { } func TestTempoClient_UploadEntries(t *testing.T) { - start := time.Date(2021, 10, 2, 0, 0, 0, 0, time.Local) + start := time.Date(2021, 10, 2, 0, 0, 0, 0, time.UTC) clientUsername := "Thor" clientPassword := "The strongest Avenger" @@ -349,7 +349,7 @@ func TestTempoClient_UploadEntries(t *testing.T) { } func TestTempoClient_UploadEntries_TreatDurationAsBilled(t *testing.T) { - start := time.Date(2021, 10, 2, 0, 0, 0, 0, time.Local) + start := time.Date(2021, 10, 2, 0, 0, 0, 0, time.UTC) clientUsername := "Thor" clientPassword := "The strongest Avenger" @@ -442,7 +442,7 @@ func TestTempoClient_UploadEntries_TreatDurationAsBilled(t *testing.T) { } func TestTempoClient_UploadEntries_RoundToClosestMinute(t *testing.T) { - start := time.Date(2021, 10, 2, 0, 0, 0, 0, time.Local) + start := time.Date(2021, 10, 2, 0, 0, 0, 0, time.UTC) clientUsername := "Thor" clientPassword := "The strongest Avenger" diff --git a/internal/pkg/worklog/entry_test.go b/internal/pkg/worklog/entry_test.go index 1fdcbc3..f9b5a1e 100644 --- a/internal/pkg/worklog/entry_test.go +++ b/internal/pkg/worklog/entry_test.go @@ -9,7 +9,7 @@ import ( ) func getTestEntry() worklog.Entry { - start := time.Date(2021, 10, 2, 5, 0, 0, 0, time.Local) + start := time.Date(2021, 10, 2, 5, 0, 0, 0, time.UTC) end := start.Add(time.Hour * 2) return worklog.Entry{