Fix iso date of week

This commit is contained in:
Dennis Eichhorn 2017-09-06 10:46:26 +02:00
parent 312273584b
commit ddd0cea898

View File

@ -239,7 +239,7 @@ class SmartDateTime extends \DateTime
$w = $w + date("z", mktime(0, 0, 0, $m, $d, $y)) + 1;
$w = ($w - 1) % 7 + 1;
return $w === 7 ? 0 : $w + 1;
return $w === 7 ? 0 : $w;
}
/**