iCal icon indicating copy to clipboard operation
iCal copied to clipboard

Setting the default auto-update period

Open koraykupe opened this issue 5 years ago • 3 comments

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

Regards.

koraykupe avatar Jul 10 '18 13:07 koraykupe

Looks like setPublishedTTL is what you are after.

https://github.com/markuspoerschke/iCal/blob/ba386acf57a7e7495d2ea1ca472064141084b533/src/Component/Calendar.php#L230-L240

Arcath avatar Jul 11 '18 13:07 Arcath

Tried but didn't work (on Mac calendar app)

koraykupe avatar Jul 11 '18 13:07 koraykupe

https://tools.ietf.org/html/rfc7986#section-5.7 adds a different property for that, maybe that's what iCalendar uses?

freaktechnik avatar Sep 20 '18 11:09 freaktechnik