mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 04:40:44 +02:00
Handle all day events
This commit is contained in:
@@ -142,8 +142,14 @@ foreach ($ev_list as $row)
|
|||||||
else
|
else
|
||||||
{ // Its a 'normal' event
|
{ // Its a 'normal' event
|
||||||
$tmp = date('j',$row['event_start']); // Day of month for start
|
$tmp = date('j',$row['event_start']); // Day of month for start
|
||||||
|
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
|
$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))
|
if(($row['event_start']>=$monthstart) && ($row['event_start']<=$monthend))
|
||||||
{ // Start within month
|
{ // Start within month
|
||||||
$events[$tmp][] = $row;
|
$events[$tmp][] = $row;
|
||||||
|
Reference in New Issue
Block a user