Use timezone from config

This commit is contained in:
kolaente 2020-06-27 15:39:34 +02:00
parent d4e0dac28b
commit d4aebf7b11
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 3 deletions

View File

@ -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{