Use timezone from config
This commit is contained in:
parent
d4e0dac28b
commit
d4aebf7b11
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue