Computing DTSTART for TIMEZONE in .ics attachment. Anyone done this?

When Notes generates a .ics attachment for a repeating event, it supplies TIMEZONE information for STANDARD and DAYLIGHT, with four parameters for each

example…

BEGIN:STANDARD

DTSTART:19501029T020000

TZOFFSETFROM:+0300

TZOFFSETTO:+0200

RRULE:FREQ=YEARLY;BYMINUTE=0;BYHOUR=2;BYDAY=-1SU;BYMONTH=10

END:STANDARD

BEGIN:DAYLIGHT

DTSTART:19500326T020000

TZOFFSETFROM:+0200

TZOFFSETTO:+0300

RRULE:FREQ=YEARLY;BYMINUTE=0;BYHOUR=2;BYDAY=-1SU;BYMONTH=3

END:DAYLIGHT

Basically, DTSTART is a translation of the RRULE line, which in the DAYLIGHT example above is saying “DST ends at 02:00 AM on the last Sunday in March”. DTSTART translates that for 1950 to March 26. I want to translate it to this year. Has anyone done this - save me a lot of work :slight_smile: