Index: event.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/event/event.module,v retrieving revision 1.178 diff -u -r1.178 event.module --- event.module 5 Dec 2005 03:09:24 -0000 1.178 +++ event.module 4 Dec 2005 05:08:09 -0000 @@ -429,13 +429,13 @@ $weekdays = event_week_days(); $rows[] = event_week_header(); - // get GMT current date value - $today = _event_user_date(); + // get today's day of the month + $today = gmdate('j', _event_user_date()); // name of the month $month_name = gmdate('M', $stamp); - // timestamp of first day of month + // start on the first day of month $curstamp = gmmktime(0, 0, 0, $month, 01, $year); // timestamp of last day in month @@ -450,7 +450,7 @@ for ($x = $start; $x < 7; $x++) { $cur_day = (($week * 7) + ($x + 1) - $offset); $row[$x] = array( - 'class' => strtolower("$month_name ". $weekdays[$x]['day'] . ($curstamp == $today ? ' today' : '') . ($cur_day == $day ? ' selected' : '')), + 'class' => strtolower("$month_name ". $weekdays[$x]['day'] . ($today == $cur_day ? ' today' : '') . ($cur_day == $day ? ' selected' : '')), 'id' => strtolower($month_name . $cur_day), 'data' => $callback($year, $month, $cur_day, $view, $types, $terms)); $curstamp += 86400;