mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 11:27:03 +00:00
Fixed that the calendar iCal export was broken when having "Track date only" chores (fixes #1547)
This commit is contained in:
2
changelog/63_UNRELEASED_xxxx.xx.xx.md
Normal file
2
changelog/63_UNRELEASED_xxxx.xx.xx.md
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
- Fixed that the upgrade failed when having "> 2 times duplicate" (means the same barcode was added more than 2 times) product barcodes
|
||||||
|
- Fixed that when having any "Track date only" chore on the calendar, the iCal export was broken
|
@@ -30,7 +30,7 @@ class CalendarApiController extends BaseApiController
|
|||||||
if ($event['date_format'] === 'date' || (isset($event['allDay']) && $event['allDay']))
|
if ($event['date_format'] === 'date' || (isset($event['allDay']) && $event['allDay']))
|
||||||
{
|
{
|
||||||
// All-day event
|
// 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);
|
$vEventOccurrence = new SingleDay($date);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user