HomePhabricator

Allow DateTime objects to be serialized and deserialized

Description

Allow DateTime objects to be serialized and deserialized

Summary:
Ref T10747. I have to move CalendarEvents to use these for everything because ICS files can have events which we can't represent with an epoch (e.g., floating "4PM" events).

Also improve some timezone/floating logic when rendering to ISO8601.

Test Plan: arc unit; see next change.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10747

Differential Revision: https://secure.phabricator.com/D16653

Details

Provenance
epriestleyAuthored on Oct 3 2016, 4:49 PM
epriestleyPushed on Oct 6 2016, 10:39 AM
Reviewer
chad
Differential Revision
D16653: Allow DateTime objects to be serialized and deserialized
Parents
rPHU65eed1be889e: Support RRULE export in ICS from libphutil
Branches
Unknown
Tags
Unknown
Tasks
T10747: Import and export ICS from Calendar
Build Status
Buildable 14034
Build 18206: Run Core Tests