1
0

fix(caldav): add Z suffix to dates make it clear dates are in UTC

This commit is contained in:
kolaente
2022-12-04 21:00:37 +01:00
parent 1cfdb085e5
commit f93317bf5d
2 changed files with 34 additions and 35 deletions

View File

@ -22,7 +22,6 @@ import (
"strings"
"time"
"code.vikunja.io/api/pkg/config"
"code.vikunja.io/api/pkg/user"
"code.vikunja.io/api/pkg/utils"
)
@ -240,7 +239,7 @@ END:VCALENDAR` // Need a line break
}
func makeCalDavTimeFromTimeStamp(ts time.Time) (caldavtime string) {
return ts.In(config.GetTimeZone()).Format(DateFormat)
return ts.In(time.UTC).Format(DateFormat) + "Z"
}
func calcAlarmDateFromReminder(eventStart, reminder time.Time) (alarmTime string) {