no need to export from there I think
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Martin Giger 2020-10-18 23:09:59 +02:00
parent 19ce729df1
commit eb22b11d58
Signed by untrusted user: freaktechnik
GPG Key ID: AE530058EFE7FD60
2 changed files with 2 additions and 3 deletions

View File

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

View File

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