merged r28889 von Jaytraxx: substract only one second from incoming whole day events because EGw stores whole day events with DTEND 23:59:59

This commit is contained in:
Ralf Becker 2010-01-04 22:57:00 +00:00
parent 749b755a18
commit ae34dae240

View File

@ -1562,7 +1562,7 @@ class calendar_ical extends calendar_boupdate
$dtend_ts = is_numeric($attributes['value']) ? $attributes['value'] : $this->date2ts($attributes['value']); $dtend_ts = is_numeric($attributes['value']) ? $attributes['value'] : $this->date2ts($attributes['value']);
if (date('H:i:s',$dtend_ts) == '00:00:00') if (date('H:i:s',$dtend_ts) == '00:00:00')
{ {
$dtend_ts -= 60; $dtend_ts -= 1;
} }
$vcardData['end'] = $dtend_ts; $vcardData['end'] = $dtend_ts;
} }