Weekdays are now calculated using userdate, so that
authormoodler <moodler>
Fri, 25 Oct 2002 02:11:58 +0000 (02:11 +0000)
committermoodler <moodler>
Fri, 25 Oct 2002 02:11:58 +0000 (02:11 +0000)
  - they are relative to the user
  - they should take advantage of locales etc

course/weeks.php

index d8a2ac6..2e263b6 100644 (file)
@@ -99,8 +99,8 @@
 
         $thisweek = (($weekdate <= $timenow) && ($timenow < $nextweekdate));
 
-        $weekday = date("j F", $weekdate);
-        $endweekday = date("j F", $weekdate+(6*24*3600));
+        $weekday = userdate($weekdate, "%e %B");
+        $endweekday = userdate($weekdate+518400, "%e %B");
 
         if ($thisweek) {
             $highlightcolor = $THEME->cellheading2;