|
|
@@ -739,7 +739,7 @@ function refreshPreview() {
|
|
|
$reminders = array();
|
|
|
$timeToday = mktime(0, 0, 0, date('n'), date('j'), date('Y'));
|
|
|
//$timeTomorrow = mktime(0, 0, 0, date('n'), date('j') + 1, date('Y'));
|
|
|
- DBG::_(true, true, "rawReminders (today:{$timeToday}. tomorrow:{$timeTomorrow})", $rawReminders, __CLASS__, __FUNCTION__, __LINE__);
|
|
|
+ DBG::_('DBG_NTF', '>1', "rawReminders (today:{$timeToday})", $rawReminders, __CLASS__, __FUNCTION__, __LINE__);
|
|
|
foreach ($rawReminders as $row) {
|
|
|
$user = $row['who'];
|
|
|
$when = $row['when'];
|
|
|
@@ -747,13 +747,13 @@ function refreshPreview() {
|
|
|
$last_exec_time = $row['last_exec_time'];
|
|
|
if ('once_a_day' == $when) {
|
|
|
if ($last_exec_time >= $timeToday) {
|
|
|
- DBG::_('DBG_CRON', '>1', "skip {$last_exec_time} for {$what} at {$when}", $row, __CLASS__, __FUNCTION__, __LINE__);
|
|
|
+ DBG::_('DBG_NTF', '>1', "skip {$last_exec_time} for {$what} at {$when}", $row, __CLASS__, __FUNCTION__, __LINE__);
|
|
|
continue;
|
|
|
} else {
|
|
|
//DBG::_(true, true, "TODO: else {$last_exec_time} >= {$timeToday}", $row, __CLASS__, __FUNCTION__, __LINE__);
|
|
|
}
|
|
|
} else {
|
|
|
- DBG::_('DBG_CRON', '>0', "TODO: unimplemented when = '{$when}'", $row, __CLASS__, __FUNCTION__, __LINE__);
|
|
|
+ DBG::_('DBG_NTF', '>0', "TODO: unimplemented when = '{$when}'", $row, __CLASS__, __FUNCTION__, __LINE__);
|
|
|
continue;
|
|
|
}
|
|
|
$last_date = ($last_exec_time)? date("Y-m-d H:i:s", $last_exec_time) : null;
|