MDLSITE-320 some debug code for digest times in forum cron; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-03-20 22:32:12 +00:00
parent 7d44b1a425
commit 291b184bc4

View File

@ -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");