Skip to content
Permalink
Browse files

Fixing MDL-6795 - Stats never runs. stats_monthly table gets very ful…

…l - avoid double tz calculations in stats_getmidnight()
  • Loading branch information
martinlanghoff
martinlanghoff committed Feb 28, 2007
1 parent 7ac2e04 commit 042117ea4f00f83feee1176170e01922ef3f7cd0
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.
}

0 comments on commit 042117e

Please sign in to comment.
You can’t perform that action at this time.