Commit 46620461 authored by Till Brehm's avatar Till Brehm
Browse files

Merge branch '6400-php8-dateformat' into 'develop'

Match conversion from strftime to date got php 8

See merge request !1652
parents d6791b3b c441d884
Pipeline #12624 passed with stage
in 13 seconds
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment