NOBUG: Removed deprecated mktime arg from dayofweek func in moodlelib

This commit is contained in:
Sam Hemelryk
2010-09-17 04:21:18 +00:00
parent c1422316bf
commit d7eeb39ed7
+1 -1
View File
@@ -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));
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 ////////////////////////////////////////