]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for bug 1354:
authordefacer <defacer>
Mon, 10 May 2004 08:35:03 +0000 (08:35 +0000)
committerdefacer <defacer>
Mon, 10 May 2004 08:35:03 +0000 (08:35 +0000)
Eloy discovered that there was too much compensation for the user's timezone
in the monthly view event popups. Removed it and now it's OK.

calendar/lib.php

index 55fa817cd2b08d67c176562c64866de3fc479536..b77088882d61b78bc4f3af233120f7ac23982889 100644 (file)
@@ -169,7 +169,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
                 $popupcontent .= '<div><a href=\\\''.CALENDAR_URL.'view.php?view=event&amp;id='.$events[$eventid]->id.'\\\'>'.addslashes(htmlspecialchars($events[$eventid]->name)).'</a></div>';
             }
 
-            $popupcaption = get_string('eventsfor', 'calendar', strftime(get_string('strftimedayshort'), usertime($events[$eventid]->timestart)));
+            $popupcaption = get_string('eventsfor', 'calendar', strftime(get_string('strftimedayshort'), $events[$eventid]->timestart));
             $popup = 'onmouseover="return overlib(\''.$popupcontent.'\', CAPTION, \''.$popupcaption.'\');" onmouseout="return nd();"';
 
             // Class and cell content