mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-22 21:30:54 +01:00
ensure correct DTEND value-type (timestamp) for later calculation in calendar import function
This commit is contained in:
parent
fa3a9da379
commit
d3d8a90ee8
@ -431,9 +431,11 @@
|
|||||||
$vcardData['description'] = $attributes['value'];
|
$vcardData['description'] = $attributes['value'];
|
||||||
break;
|
break;
|
||||||
case 'DTEND':
|
case 'DTEND':
|
||||||
if(date('H:i:s',$attributes['value']) == '00:00:00')
|
$dtend_ts = is_numeric($attributes['value']) ? $attributes['value'] : $this->date2ts($attributes['value']);
|
||||||
$attributes['value']--;
|
if(date('H:i:s',$dtend_ts) == '00:00:00') {
|
||||||
$vcardData['end'] = $attributes['value'];
|
$dtend_ts -= 60;
|
||||||
|
}
|
||||||
|
$vcardData['end'] = $dtend_ts;
|
||||||
break;
|
break;
|
||||||
case 'DTSTART':
|
case 'DTSTART':
|
||||||
$vcardData['start'] = $attributes['value'];
|
$vcardData['start'] = $attributes['value'];
|
||||||
|
Loading…
Reference in New Issue
Block a user