]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for bug 1354:
authordefacer <defacer>
Fri, 14 May 2004 07:34:10 +0000 (07:34 +0000)
committerdefacer <defacer>
Fri, 14 May 2004 07:34:10 +0000 (07:34 +0000)
(REAL fix this time! ;-)

Thanks for the report, Eloy. I now know what I was doing wrong. Because on my
dev site I have the same TZ as the server, sometimes I can make mistakes and
"get away with them". :-/

calendar/lib.php

index 6af01e2cf905ed26016f4f1cb57a7ef3efcf0838..ad313a70ce5cb6bf60b6582803ce3d6e14cfda7f 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'), $events[$eventid]->timestart));
+            $popupcaption = get_string('eventsfor', 'calendar', userdate($events[$eventid]->timestart, get_string('strftimedayshort')));
             $popup = 'onmouseover="return overlib(\''.$popupcontent.'\', CAPTION, \''.$popupcaption.'\');" onmouseout="return nd();"';
 
             // Class and cell content