diff --git a/server/lib/classes/cron.inc.php b/server/lib/classes/cron.inc.php index 2c7f16170c32bb121e0b33280e15a9614712f488..d0e26c66f44d278eb5f33a712c47eefcbf4c1d80 100644 --- a/server/lib/classes/cron.inc.php +++ b/server/lib/classes/cron.inc.php @@ -204,7 +204,7 @@ class cron { if($this->_bParsed == false) $this->_calcValidValues(); // get the field values for the given Date. - list($iMinute, $iHour, $iDay, $iWDay, $iMonth, $iYear) = explode(':', ISPConfigDateTime::to_string($vDate, 'custom:%M:%H:%d:%w:%m:%Y')); + list($iMinute, $iHour, $iDay, $iWDay, $iMonth, $iYear) = explode(':', ISPConfigDateTime::to_string($vDate, 'custom:i:G:j:w:n:Y')); $bValid = false; $iStartYear = $iYear; @@ -244,7 +244,6 @@ class cron { } $ts = mktime($iHour, $iMinute, 0, $iMonth, $iDay, $iYear); - //print strftime('%d.%m.%Y (%A) %H:%M', $ts) . "\n"; //var_dump($iCurMinute, $iCurHour, $iCurDay, $iCurMonth, $iCurWDay, '--', $iNextMinute, $iNextHour, $iNextDay, $iNextMonth, $iNextWDay); if(ISPConfigDateTime::last_day($iMonth, $iYear) >= $iDay && in_array($app->functions->intval(date('w', $ts)), $this->_aValidValues['weekday'], true) === true) { $bValid = true;