@@ -69,8 +69,9 @@ |
||
| 69 | 69 | ) |
| 70 | 70 | ]; |
| 71 | 71 | |
| 72 | - if(!empty($this->vo->getDescription())) |
|
| 73 | - $props['{urn:ietf:params:xml:ns:caldav}calendar-description'] = $this->vo->getDescription(); |
|
| 72 | + if(!empty($this->vo->getDescription())) { |
|
| 73 | + $props['{urn:ietf:params:xml:ns:caldav}calendar-description'] = $this->vo->getDescription(); |
|
| 74 | + } |
|
| 74 | 75 | |
| 75 | 76 | return $service->write('{urn:ietf:params:xml:ns:caldav}mkcalendar', |
| 76 | 77 | [ |
@@ -47,10 +47,11 @@ |
||
| 47 | 47 | $dt = new DateTime($trans['time'], new DateTimeZone('UTC')); |
| 48 | 48 | $hours = abs($former_offset); |
| 49 | 49 | // START TIME IS ON UTC and should be converted to local using former offset |
| 50 | - if($former_offset >= 0 ) |
|
| 51 | - $dt->add(new DateInterval("PT{$hours}H")); |
|
| 52 | - else |
|
| 53 | - $dt->sub(new DateInterval("PT{$hours}H")); |
|
| 50 | + if($former_offset >= 0 ) { |
|
| 51 | + $dt->add(new DateInterval("PT{$hours}H")); |
|
| 52 | + } else { |
|
| 53 | + $dt->sub(new DateInterval("PT{$hours}H")); |
|
| 54 | + } |
|
| 54 | 55 | |
| 55 | 56 | return $dt; |
| 56 | 57 | } |