Commit Graph

5 Commits

Author SHA1 Message Date
Robert Miles 99961cfa55 HOTFIX: Fix the ICS generator (again)
continuous-integration/drone/pr Build encountered an error Details
I overestimated how much was in common between the two files. ics.php had its
own formatdate function, which it no longer does (thanks ben (/s)).

Reimplement ics.php's former formatdate function as ics_formatdate, and use
it instead of formatdate to format the dates in the ICS output.
2020-07-02 22:48:06 -04:00
Robert Miles 1c1744092b Merge branch 'master' of https://tildegit.org/tilderadio/site
continuous-integration/drone/pr Build encountered an error Details
2020-07-02 22:44:11 -04:00
Robert Miles f409367cfe Fix ICS generator
continuous-integration/drone/pr Build encountered an error Details
Specifically, adds DTSTAMP properties to all of the objects (the calendar and
the events), terminates lines in CRLF, and splits the UID over 2 lines so the
validator is happy with me.
2020-07-02 22:32:06 -04:00
Ben Harris c78aea671c move common schedule code to library
continuous-integration/drone/push Build is passing Details
2020-07-02 21:53:12 -04:00
Robert Miles 9a928f4a39 Add the ICS calendar generator
continuous-integration/drone/pr Build encountered an error Details
continuous-integration/drone/push Build is passing Details
Here be dragons. I manually reverse-engineered an ICS file generated by a
program I wrote to figure out the syntax, and then I wrote some PHP to
generate a file to that spec.
2020-07-02 18:52:40 -04:00