some clients (CalenGoo on Android) send equal start&end for 1 day whole-day event

This commit is contained in:
Ralf Becker 2011-06-09 17:21:01 +00:00
parent e59b50e7fb
commit 08a40bf8a8

View File

@ -632,6 +632,7 @@ return array(); // temporary disabling meeting requests from calendar
if (($event['whole_day'] = $message->alldayevent))
{
if ($event['end'] == $event['start']) $event['end'] += 24*3600; // some clients send equal start&end for 1day
$event['end']--; // otherwise our whole-day event code in save makes it one more day!
}