diff --git a/services/ical/model/eventModel_test.go b/services/ical/model/eventModel_test.go index e396b59..bee7eb5 100644 --- a/services/ical/model/eventModel_test.go +++ b/services/ical/model/eventModel_test.go @@ -25,7 +25,7 @@ import ( func TestEvents_Contains(t *testing.T) { // parse time for JSONTime "2020-01-01 12:00:00.000Z" - specificTime, _ := time.Parse("2020-01-01T12:00:00.000Z", "2020-01-01 12:00:00.000Z") + specificTime, _ := time.Parse("2006-01-02T15:04:05.000Z", "2020-01-01T12:00:00.000Z") specificJSONTime := JSONTime(specificTime) type args struct { @@ -73,7 +73,7 @@ func TestEvents_Contains(t *testing.T) { func TestEvent_Equals(t *testing.T) { - specificTime, _ := time.Parse("2020-01-01T12:00:00.000Z", "2020-01-01 12:00:00.000Z") + specificTime, _ := time.Parse("2006-01-02T15:04:05.000Z", "2020-01-01T12:00:00.000Z") specificJSONTime := JSONTime(specificTime) type fields struct {