diff --git a/pkg/models/task_collection_test.go b/pkg/models/task_collection_test.go index e97993889..d4426d60e 100644 --- a/pkg/models/task_collection_test.go +++ b/pkg/models/task_collection_test.go @@ -17,11 +17,11 @@ package models import ( + "code.vikunja.io/api/pkg/config" "code.vikunja.io/api/pkg/db" "code.vikunja.io/api/pkg/files" "code.vikunja.io/api/pkg/user" "code.vikunja.io/web" - "github.com/stretchr/testify/assert" "gopkg.in/d4l3k/messagediff.v1" "testing" "time" @@ -53,8 +53,7 @@ func TestTaskCollection_ReadAll(t *testing.T) { Updated: testUpdatedTime, } - loc, err := time.LoadLocation("GMT") - assert.NoError(t, err) + loc := config.GetTimeZone() // We use individual variables for the tasks here to be able to rearrange or remove ones more easily task1 := &Task{