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)
Wed, Dec 18, 2:47 AM
Unknown Object (File)
Thu, Dec 12, 7:47 PM
Unknown Object (File)
Thu, Dec 12, 3:15 AM
Unknown Object (File)
Wed, Dec 11, 5:38 PM
Unknown Object (File)
Wed, Dec 11, 5:50 AM
Unknown Object (File)
Wed, Dec 11, 5:50 AM
Unknown Object (File)
Wed, Dec 11, 5:50 AM
Unknown Object (File)
Wed, Dec 11, 4:27 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.