]> git.mjollnir.org Git - moodle.git/commitdiff
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 d8a2ac6df0d5fb4ad6618fe17f7f07b6dba0585c..2e263b6d3d38b55f9ec90c7bd62a635894f76644 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;