diff --git a/pkg/caldav/caldav.go b/pkg/caldav/caldav.go index 173a6e71c3..067a50baef 100644 --- a/pkg/caldav/caldav.go +++ b/pkg/caldav/caldav.go @@ -27,9 +27,8 @@ import ( "code.vikunja.io/api/pkg/utils" ) -// DateFormat ist the caldav date format +// DateFormat is the caldav date format const DateFormat = `20060102T150405` -const DateFormatAbsolute = `20060102T150405Z` // Event holds a single caldav event type Event struct { diff --git a/pkg/routes/caldav/parsing.go b/pkg/routes/caldav/parsing.go index 8298a6d3ba..547f717e67 100644 --- a/pkg/routes/caldav/parsing.go +++ b/pkg/routes/caldav/parsing.go @@ -121,7 +121,7 @@ func caldavTimeToTimestamp(tstring string) time.Time { format := caldav.DateFormat if strings.HasSuffix(tstring, "Z") { - format = caldav.DateFormatAbsolute + format = `20060102T150405Z` } t, err := time.Parse(format, tstring)