no need to export from there I think
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
19ce729df1
commit
eb22b11d58
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue