mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 03:25:50 +00:00
Fixed that the calendar iCal export was broken when having "Track date only" chores (fixes #1547)
This commit is contained in:
@@ -30,7 +30,7 @@ class CalendarApiController extends BaseApiController
|
||||
if ($event['date_format'] === 'date' || (isset($event['allDay']) && $event['allDay']))
|
||||
{
|
||||
// All-day event
|
||||
$date = new Date(\DateTimeImmutable::createFromFormat('Y-m-d', $event['start']));
|
||||
$date = new Date(\DateTimeImmutable::createFromFormat('Y-m-d', substr($event['start'], 0, 10)));
|
||||
$vEventOccurrence = new SingleDay($date);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user