Better caldav support #73

Merged
konrad merged 82 commits from feature/better-caldav-support into master 2019-05-22 17:48:49 +00:00
2 changed files with 6 additions and 4 deletions
Showing only changes of commit 9642a62346 - Show all commits

View File

@ -197,7 +197,7 @@ Sorry for some of them being in German, I'll tranlate them at some point.
* [x] Content Size
* [x] Modify the caldav lib as proposed in the pr
* [x] Improve login performance, each request taking > 1.5 sec is just too much, maybe just use the default value for hash iterations in the login/register function
* [ ] Only show priority when we have one
* [x] Only show priority when we have one
* [ ] Show a proper calendar title
* [ ] Make it work with the app
* [ ] Cleanup the whole mess I made with the handlers and storage providers etc -> Probably a good idea to create a seperate storage provider etc for lists and tasks

View File

@ -140,11 +140,11 @@ UID:` + t.UID + `
DTSTAMP:` + makeCalDavTimeFromUnixTime(t.TimestampUnix) + `
SUMMARY:` + t.Summary
if t.CompletedUnix != 0 {
if t.StartUnix != 0 {
caldavtodos += `
DTSTART: ` + makeCalDavTimeFromUnixTime(t.StartUnix)
}
if t.CompletedUnix != 0 {
if t.EndUnix != 0 {
caldavtodos += `
DTEND: ` + makeCalDavTimeFromUnixTime(t.EndUnix)
}
@ -181,8 +181,10 @@ CREATED:` + makeCalDavTimeFromUnixTime(t.CreatedUnix)
DURATION:PT` + fmt.Sprintf("%.6f", t.Duration.Hours()) + `H` + fmt.Sprintf("%.6f", t.Duration.Minutes()) + `M` + fmt.Sprintf("%.6f", t.Duration.Seconds()) + `S`
}
caldavtodos += `
if t.Priority != 0 {
caldavtodos += `
PRIORITY:` + strconv.Itoa(int(t.Priority))
}
caldavtodos += `
LAST-MODIFIED:` + makeCalDavTimeFromUnixTime(t.UpdatedUnix)