forked from aksdb/CalAnonSync
Execute ical update on change
This commit is contained in:
parent
26d0cd400a
commit
a20a9040b6
|
@ -52,7 +52,15 @@ func main() {
|
||||||
!ewsItem.End.Equal(calDavItem.End()) {
|
!ewsItem.End.Equal(calDavItem.End()) {
|
||||||
|
|
||||||
// So times have changed. Update.
|
// So times have changed. Update.
|
||||||
// TODO
|
calDavItem.Update(ewsItem.Start, ewsItem.End)
|
||||||
|
|
||||||
|
err := c.UploadItem(calDavItem)
|
||||||
|
if err == nil {
|
||||||
|
log.Printf("Updated item %s (%s)\n", uid, ewsItem.Subject)
|
||||||
|
} else {
|
||||||
|
// Not fatal, but worth a note.
|
||||||
|
log.Println(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Oops, seems the item vanished.
|
// Oops, seems the item vanished.
|
||||||
|
|
Loading…
Reference in New Issue