iCal
iCal copied to clipboard
Setting the default auto-update period
Hello,
I tried to change X-PUBLISHED-TTL to P1H to make the default auto-update period hourly, but when I subscribe on Calendar Mac app, it doesn't preselect that period. It shows "Every week" as default.
Is there a way to change that value?
![screenshot_10_07_2018__15_45](https://user-images.githubusercontent.com/5278340/42513865-4e5248dc-8458-11e8-9ad8-a5082878484a.png)
Regards.
Looks like setPublishedTTL
is what you are after.
https://github.com/markuspoerschke/iCal/blob/ba386acf57a7e7495d2ea1ca472064141084b533/src/Component/Calendar.php#L230-L240
Tried but didn't work (on Mac calendar app)
https://tools.ietf.org/html/rfc7986#section-5.7 adds a different property for that, maybe that's what iCalendar uses?