From 291b184bc49902ff45a7e83fa0e7125557c28609 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 20 Mar 2008 22:32:12 +0000 Subject: [PATCH] MDLSITE-320 some debug code for digest times in forum cron; merged from MOODLE_19_STABLE --- mod/forum/lib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 22bcf3f902..20cd143647 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -479,6 +479,9 @@ function forum_cron() { $timenow = time(); $digesttime = usergetmidnight($timenow, $sitetimezone) + ($CFG->digestmailtime * 3600); + // some debug code for 2digests per day problem + mtrace(' (Expected digest time today: '.$digesttime.' admin user zone:'.userdate($digesttime).' site zone:'.userdate($digesttime, '', $sitetimezone).')'); + // Delete any really old ones (normally there shouldn't be any) $weekago = $timenow - (7 * 24 * 3600); delete_records_select('forum_queue', "timemodified < $weekago"); -- 2.39.5