diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index f9c54d61003..74e7ece502b 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -659,12 +659,11 @@ if (empty($action) || $action == 'show_month') // View by month { $curtime = dol_mktime (0, 0, 0, $month, $tmpday, $year); - if ($curtime < $now) - $style='cal_current_month'; - else if($curtime == $now) - $style='cal_today'; - else $style='cal_current_month'; + $today=0; + $todayarray=dol_getdate($now,'fast'); + if ($todayarray['mday']==$tmpday && $todayarray['mon']==$month && $todayarray['year']==$year) $today=1; + if ($today) $style='cal_today'; echo ' '; show_day_events($db, $tmpday, $month, $year, $month, $style, $eventarray, $conf->global->AGENDA_MAX_EVENTS_DAY_VIEW, $maxlength, $newparam); @@ -764,11 +763,11 @@ else // View by day $db->close(); -/* TODO Add RSS Links +/* TODO Export print ' - - - + + +