1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 03:02:43 +01:00
phorge-phorge/src/applications/people/controller
epriestley c09e870733 Prepare event dates for EditEngine/API
Summary:
Ref T9275. Currently, the "Start Date", "End Date", and "Recurrence End Date" transcations take a complex value (AphrontFormDateControlValue) and reduce it to an epoch.

Do this a little earlier, since the API will be much more usable if it just passes in epoch timestamps.

Events also have some logic where they rewrite the from date and to date on the actual object for all day events, then undo the changes later. Specifically, if you have an all-day event on "July 24th", the exact start and end times vary based on who is looking at it. Instead of overwriting the persistent `dateFrom` and `dateTo` properties, add separate `viewer` properties to make it easier to keep this stuff straight.

Since this means all-day events get stored in UTC, we need to query/fetch (and then discard) slightly more events. This is perfectly and much simpler to do.

The one weird "UTC" hack in here will get nuked when this moves to EditEngine properly.

Test Plan: Edited times for normal events and all-day events.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9275

Differential Revision: https://secure.phabricator.com/D16274
2016-07-13 07:42:30 -07:00
..
PhabricatorPeopleApproveController.php Modernize People UI 2016-04-04 08:06:44 -07:00
PhabricatorPeopleController.php Convert user profiles to Profile Panels 2016-01-15 09:13:13 -08:00
PhabricatorPeopleCreateController.php Modernize People UI 2016-04-04 08:06:44 -07:00
PhabricatorPeopleDeleteController.php Move user editing/management actions to a separate "Manage" item, like projects 2016-01-24 10:01:31 -08:00
PhabricatorPeopleDisableController.php Move user editing/management actions to a separate "Manage" item, like projects 2016-01-24 10:01:31 -08:00
PhabricatorPeopleEmpowerController.php Move user editing/management actions to a separate "Manage" item, like projects 2016-01-24 10:01:31 -08:00
PhabricatorPeopleInviteController.php Add administrative invite interfaces 2015-02-11 06:05:53 -08:00
PhabricatorPeopleInviteListController.php Add administrative invite interfaces 2015-02-11 06:05:53 -08:00
PhabricatorPeopleInviteSendController.php Modernize People UI 2016-04-04 08:06:44 -07:00
PhabricatorPeopleLdapController.php Modernize People UI 2016-04-04 08:06:44 -07:00
PhabricatorPeopleListController.php Add "Mailing List" users 2015-06-03 18:42:33 -07:00
PhabricatorPeopleLogsController.php Policy - clean up access to user profile image uri 2015-02-02 14:04:23 -08:00
PhabricatorPeopleNewController.php Modernize People UI 2016-04-04 08:06:44 -07:00
PhabricatorPeopleProfileController.php Convert user profiles to Profile Panels 2016-01-15 09:13:13 -08:00
PhabricatorPeopleProfileEditController.php Modernize People UI 2016-04-04 08:06:44 -07:00
PhabricatorPeopleProfileManageController.php Allow administrators to configure global default settings 2016-06-05 13:15:06 -07:00
PhabricatorPeopleProfilePictureController.php Modernize People UI 2016-04-04 08:06:44 -07:00
PhabricatorPeopleProfileViewController.php Prepare event dates for EditEngine/API 2016-07-13 07:42:30 -07:00
PhabricatorPeopleRenameController.php Move user editing/management actions to a separate "Manage" item, like projects 2016-01-24 10:01:31 -08:00
PhabricatorPeopleWelcomeController.php Don't allow welcome mail to be sent to users who can't login 2015-09-20 04:28:33 -07:00