Index: event.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/event/event.module,v
retrieving revision 1.122.2.25
diff -u -r1.122.2.25 event.module
--- event.module	5 Dec 2005 03:08:25 -0000	1.122.2.25
+++ event.module	4 Dec 2005 05:20:36 -0000
@@ -443,13 +443,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
@@ -464,7 +464,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;

