Return iso dates for everything date related from the api (#130)
Remove traces of unix timestamp Revert renaming reminder table column Fix staticcheck Remove unused table call Add migration for renaming reminders table Fix issues with using TimeStamp Fix lint Updated all created / updated fields to use TimeStamps Add comments Convert all created / updated fields to datetime Add time util package Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/api/pulls/130
This commit is contained in:
@ -2,6 +2,7 @@ package models
|
||||
|
||||
import (
|
||||
"code.vikunja.io/api/pkg/db"
|
||||
"code.vikunja.io/api/pkg/timeutil"
|
||||
"code.vikunja.io/api/pkg/user"
|
||||
"gopkg.in/d4l3k/messagediff.v1"
|
||||
"reflect"
|
||||
@ -16,7 +17,7 @@ func TestLabelTask_ReadAll(t *testing.T) {
|
||||
ID int64
|
||||
TaskID int64
|
||||
LabelID int64
|
||||
Created int64
|
||||
Created timeutil.TimeStamp
|
||||
CRUDable web.CRUDable
|
||||
Rights web.Rights
|
||||
}
|
||||
@ -113,7 +114,7 @@ func TestLabelTask_Create(t *testing.T) {
|
||||
ID int64
|
||||
TaskID int64
|
||||
LabelID int64
|
||||
Created int64
|
||||
Created timeutil.TimeStamp
|
||||
CRUDable web.CRUDable
|
||||
Rights web.Rights
|
||||
}
|
||||
@ -207,7 +208,7 @@ func TestLabelTask_Delete(t *testing.T) {
|
||||
ID int64
|
||||
TaskID int64
|
||||
LabelID int64
|
||||
Created int64
|
||||
Created timeutil.TimeStamp
|
||||
CRUDable web.CRUDable
|
||||
Rights web.Rights
|
||||
}
|
||||
|
Reference in New Issue
Block a user