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	6 Dec 2005 03:55:58 -0000
@@ -443,8 +443,9 @@
   $weekdays = event_week_days();
   $rows[] = event_week_header();
 
-  // get GMT current date value
-  $today = _event_user_date();
+  // get today's day of the month. note: use date() rather than
+  // gmdate() because it's already a localized time.
+  $today = date('j', _event_user_date());
 
   // name of the month
   $month_name = gmdate('M', $stamp);
@@ -464,7 +465,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;

