From 0fe23391c78f7457f95ad09e60c4d65353f3d656 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 21 Feb 2020 08:30:35 +0100 Subject: Fix highlighting of current events on list.php --- list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'list.php') diff --git a/list.php b/list.php index 52fc4ce..e3831a4 100644 --- a/list.php +++ b/list.php @@ -77,7 +77,7 @@ foreach ($events as $event){ $last_month=$month; $time=time(); - if ($end_date<$time) + if ($end_date+3600*24<$time) $classes[]='expired'; elseif ($start_date<=$time && $time<$end_date+3600*24) $classes[]='current'; -- cgit v1.2.3