1

I have a ICS feed for a calendar, that I subscribe from Google calendar. As soon as I add the feed, it shows all the events perfectly. But when I edit events, it doesn't update. So it seems like it can read the feed, but doesn't sync it.

If I remove the feed and add it again, its still not synced. But if I add a parameter to the url (ex. &x=1), it will import the updates, but still not sync. So it seems like Google is caching the feed pr. url, but doesn't sync after the url has been added.

Anyone else had this issue, or know a solution?

SOLUTION UPDATE: 12/03 - 2020

I missed the fields "SEQUENCE" and "LAST-MODIFIED". Credits to @anmari for spotting the error.

The calendar now syncs perfectly with Google.

Example from the ICS file:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ZContent.net//Zap Calendar 1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
SUMMARY:Gudstjeneste - prædiken ved Enok Sørensen
UID:1177
DTSTART:20190915T073000Z
DTEND:20190915T103000Z
DTSTAMP:20190907T164050Z
LAST-MODIFIED:20200311T195313Z
SEQUENCE:2
LOCATION:Nørregade 13, 6900 Skjern
URL:https://www.lm-kirken.dk/kalender/gudstjeneste-15-09/
END:VEVENT
BEGIN:VEVENT
SUMMARY:Fredagsfællesskab
UID:1248
DTSTART:20190920T153000Z
DTEND:20190920T180000Z
DTSTAMP:20190909T201436Z
LAST-MODIFIED:20200312T062507Z
SEQUENCE:1
LOCATION:Nørregade 13, 6900 Skjern
URL:https://www.lm-kirken.dk/kalender/fredagsfaellesskab-20-09/
END:VEVENT
BEGIN:VEVENT
SUMMARY:Gudstjeneste - prædiken ved Leif Bach Kofoed
UID:1214
DTSTART:20190929T083000Z
DTEND:20190929T103000Z
DTSTAMP:20190909T185328Z
LAST-MODIFIED:20200311T210357Z
SEQUENCE:1
LOCATION:Nørregade 13, 6900 Skjern
URL:https://www.lm-kirken.dk/kalender/gudstjeneste-29-9/
END:VEVENT
END:VCALENDAR
Gian Arauz
  • 423
  • 1
  • 7
  • 14
Bjørn Nyborg
  • 993
  • 7
  • 17
  • I'm voting to close this question as off-topic because its not programming related – Linda Lawton - DaImTo Mar 06 '20 at 11:16
  • if this is related to the google calendar api please include your code – Linda Lawton - DaImTo Mar 06 '20 at 11:16
  • Hi, when trying to sync the calendar you provided in my Google's calendar it seems to add 68 new events BUT I can't seem to locate them in the calendar. IN which dates do you have these events? – Mateo Randwolf Mar 09 '20 at 15:58
  • @DalmTo Its programming related, because i programmed the feed. You can see the code if you download the linked ics file. – Bjørn Nyborg Mar 09 '20 at 21:50
  • @MateoRandwolf The events are from now and every weekend for the rest of the year. They show up just fine in all calendars i tried, but they just doesnt sync when i added in google calendar. I suspect some kind of malformed or missing data in my ics, but Google doesnt give me any errors to work with. – Bjørn Nyborg Mar 09 '20 at 21:53

1 Answers1

2

Bjorn to tell any calendar application that an event has been updated (so that it will sync it) one needs fields to be updated for the event that is being modified, and add:

LAST-MODIFIED:19960817T133000Z SEQUENCE:1 (of update)

See also ics event update failed in web calendar and Icalendar ICS update not working in google calendar and the specification https://www.rfc-editor.org/rfc/rfc5545#section-3.8.7.4

Community
  • 1
  • 1
anmari
  • 3,830
  • 1
  • 15
  • 15
  • @anmaria This is perfect! I implemented the two fields, and the updates synced perfectly! Thanks a lot, that was very helpful! – Bjørn Nyborg Mar 12 '20 at 13:04