Permalink
Browse files

Weekdays are now calculated using userdate, so that

  - they are relative to the user
  - they should take advantage of locales etc
  • Loading branch information...
1 parent 2be8b28 commit ed4ed0939b7fba3b5cdd0557a615ba0741c4b914 moodler committed Oct 25, 2002
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/weeks.php
View
@@ -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;

0 comments on commit ed4ed09

Please sign in to comment.