aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2020-02-21 08:30:35 +0100
committerCamil Staps2020-02-21 08:30:35 +0100
commit0fe23391c78f7457f95ad09e60c4d65353f3d656 (patch)
treeb2b70f07292152d5d72c788b1ae4a93a866f04fe
parentAdd formatting for past and current events on list.php (diff)
Fix highlighting of current events on list.php
-rw-r--r--list.php2
1 files changed, 1 insertions, 1 deletions
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';