Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2be8b28
)
Weekdays are now calculated using userdate, so that
author
moodler
<moodler>
Fri, 25 Oct 2002 02:11:58 +0000
(
02:11
+0000)
committer
moodler
<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
patch
|
blob
|
blame
|
history
diff --git
a/course/weeks.php
b/course/weeks.php
index
d8a2ac6
..
2e263b6
100644
(file)
--- a/
course/weeks.php
+++ b/
course/weeks.php
@@
-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;