1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 21:21:54 +02:00

Handle all day events

This commit is contained in:
e107steved 2012-02-28 20:51:11 +00:00
parent 74c19e5468
commit 6a32ff7d66

@ -142,8 +142,14 @@ foreach ($ev_list as $row)
else
{ // Its a 'normal' event
$tmp = date('j',$row['event_start']); // Day of month for start
$tmp2 = date('j',$row['event_end']-1); // Day of month for end - knock off a second to allow for BST and suchlike
if ($row['event_allday'])
{
$tmp2 = $tmp; // Same day for start and end
}
else
{
$tmp2 = date('j',$row['event_end']-1); // Day of month for end - knock off a second to allow for BST and suchlike
}
if(($row['event_start']>=$monthstart) && ($row['event_start']<=$monthend))
{ // Start within month
$events[$tmp][] = $row;