1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Properly import all-day events in Calendar

Summary: Ref T10747. The transaction version of this copies the "all day" flag over properly, but this non-transaction version needs to copy it explicitly.

Test Plan: Imported an all-day event, saw it come in as all-day.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10747

Differential Revision: https://secure.phabricator.com/D16770
This commit is contained in:
epriestley 2016-10-30 08:13:08 -07:00
parent 5fd79479ec
commit 96b064b7e9

View file

@ -520,6 +520,8 @@ abstract class PhabricatorCalendarImportEngine
->setStartDateTime($start_datetime)
->setEndDateTime($end_datetime);
$event->setIsAllDay($start_datetime->getIsAllDay());
// TODO: This should be transactional, but the transaction only accepts
// simple frequency rules right now.
$rrule = $node->getRecurrenceRule();