From: martinlanghoff Date: Wed, 28 Feb 2007 02:50:51 +0000 (+0000) Subject: Fixing MDL-6795 - Stats never runs. stats_monthly table gets very full - avoid double... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b0ae3878a498e5994d79c980a82dbe7e3ced3cce;p=moodle.git Fixing MDL-6795 - Stats never runs. stats_monthly table gets very full - avoid double tz calculations in stats_getmidnight() --- diff --git a/lib/statslib.php b/lib/statslib.php index 18a6196c4b..aac49bfb1e 100644 --- a/lib/statslib.php +++ b/lib/statslib.php @@ -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. }