Page MenuHomePhabricator

Write basic ICS files from Phutil intermediate objects
ClosedPublic

Authored by epriestley on Sep 14 2016, 8:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 2:01 AM
Unknown Object (File)
Fri, Apr 19, 5:18 PM
Unknown Object (File)
Thu, Apr 4, 2:40 AM
Unknown Object (File)
Wed, Apr 3, 4:38 PM
Unknown Object (File)
Sun, Mar 31, 12:00 AM
Unknown Object (File)
Fri, Mar 29, 5:04 AM
Unknown Object (File)
Mar 15 2024, 4:24 AM
Unknown Object (File)
Mar 5 2024, 12:45 AM
Subscribers

Details

Summary

Ref T10747. Allows the intermediate event representation to be written out to an ICS file. This isn't full-featured but the core works.

Test Plan

Added unit tests, ran unit tests.

Imported the resulting .ics file into Calendar.app, got an equivalent event:

Screen Shot 2016-09-14 at 1.44.23 PM.png (324×472 px, 59 KB)

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Write basic ICS files from Phutil intermediate objects.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.

If you wanted this to closely follow the specification (RFC 5545), then you need to add VERSION and PRODID, ex:

VERSION:2.0
PRODID:-//phabricator/calexport//NONSGML v1.0//EN
chad edited edge metadata.
This revision is now accepted and ready to land.Sep 15 2016, 12:42 AM
This revision was automatically updated to reflect the committed changes.