]> git.mjollnir.org Git - moodle.git/commitdiff
Fixing MDL-6795 - Stats never runs. stats_monthly table gets very full - avoid double...
authormartinlanghoff <martinlanghoff>
Wed, 28 Feb 2007 02:50:51 +0000 (02:50 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 28 Feb 2007 02:50:51 +0000 (02:50 +0000)
lib/statslib.php

index 18a6196c4b6b658419179ade08579661897a7ecc..aac49bfb1e8de47de28dd70e4d33e73c6343f97e 100644 (file)
@@ -1100,7 +1100,7 @@ function stats_check_uptodate($courseid=0) {
 // copied from usergetmidnight, but we ignore dst
 function stats_getmidnight($date, $timezone=99) {
     $timezone = get_user_timezone_offset($timezone);
-    $userdate = stats_getdate($date, $timezone);
+    $userdate = getdate($date);
     return make_timestamp($userdate['year'], $userdate['mon'], $userdate['mday'], 0, 0, 0, $timezone,false ); // ignore dst for this.
 }