From ce020204cb9adbdfa9da0e970c69d516d70f5135 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 11 Jan 2026 17:43:25 +0100 Subject: [PATCH] Events/Fixup * fix events occupying an additional day in calendar view if starting and ending at 0:00 --- includes/dbtypes/worldevent.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/dbtypes/worldevent.class.php b/includes/dbtypes/worldevent.class.php index 09e94e8f..d5184f26 100644 --- a/includes/dbtypes/worldevent.class.php +++ b/includes/dbtypes/worldevent.class.php @@ -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']);