Events/Fixup

* fix events occupying an additional day in calendar view
   if starting and ending at 0:00
This commit is contained in:
Sarjuuk 2026-01-11 17:43:25 +01:00
parent 40717a8057
commit ce020204cb

View file

@ -106,8 +106,8 @@ class WorldEventList extends DBTypeList
{
WorldEventList::updateDates($row['_date'] ?? null, $start, $end, $rec);
$row['startDate'] = $start ? date(Util::$dateFormatInternal, $start) : null;
$row['endDate'] = $end ? date(Util::$dateFormatInternal, $end) : null;
$row['startDate'] = $start ? date(Util::$dateFormatInternal, $start) : null;
$row['endDate'] = $end ? date(Util::$dateFormatInternal, $end - 1) : null;
$row['rec'] = $rec;
unset($row['_date']);