mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01:00
Fixed that the calendar iCal export was broken when having "Track date only" chores (fixes #1547)
This commit is contained in:
parent
f47ca963ab
commit
8225215e39
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']))
|
||||
{
|
||||
// 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user