matthewkong/liferay-portal — pull request #306 by jonathanmccann (2013-08-02 20:18:15+00:00)
Title: LPS-38404 Import 2 day all day event from Outlook 2007 causes EventEndDateException

Hey Matt,

So I didn't make the fix up where the diffMillis is calculated because the duration is calculated correctly. An event from 8/1 to 8/2 has a duration of two days, which is correct. However, when adding this duration to the "until" date, it doesn't take into account that one of those duration days is already used. So when it adds the duration to the "until" date it makes it go from 8/1 to 8/3 since it is adding two days to it.

Also, we don't have to check if it is an all day event because the fix is inside of an if statement checking if it is a multi day event and if it is a multi day event then it is an all day event as well.