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:
c142231
)
NOBUG: Removed deprecated mktime arg from dayofweek func in moodlelib
author
Sam Hemelryk
<sam@moodle.com>
Fri, 17 Sep 2010 04:21:18 +0000
(
04:21
+0000)
committer
Sam Hemelryk
<sam@moodle.com>
Fri, 17 Sep 2010 04:21:18 +0000
(
04:21
+0000)
lib/moodlelib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/moodlelib.php
b/lib/moodlelib.php
index
52a43b5
..
fb06ba4
100644
(file)
--- a/
lib/moodlelib.php
+++ b/
lib/moodlelib.php
@@
-2201,7
+2201,7
@@
function days_in_month($month, $year) {
function dayofweek($day, $month, $year) {
// I wonder if this is any different from
// strftime('%w', mktime(12, 0, 0, $month, $daysinmonth, $year, 0));
function dayofweek($day, $month, $year) {
// I wonder if this is any different from
// strftime('%w', mktime(12, 0, 0, $month, $daysinmonth, $year, 0));
- return intval(date('w', mktime(12, 0, 0, $month, $day, $year
, 0
)));
+ return intval(date('w', mktime(12, 0, 0, $month, $day, $year)));
}
/// USER AUTHENTICATION AND LOGIN ////////////////////////////////////////
}
/// USER AUTHENTICATION AND LOGIN ////////////////////////////////////////