Переделан знак зодиака на более точный (NON WELL FORMED NUMERIC VALUE ENCOUNTERED IN PHP DATE)

This commit is contained in:
Igor Barkov (iwork) 2020-07-03 18:56:44 +03:00
parent dfce86a6bc
commit f668940a9f

View File

@ -2027,8 +2027,8 @@ function star_sign($date)
$zodiac[51] = "12";
$zodiac[20] = "11";
$zodiac[0] = "10";
(int)$dayOfYear = date("z", $date);
(int)$isLeapYear = date("L", $date); //Высокосный?
$dayOfYear = date("z", strtotime($date));
$isLeapYear = date("L", strtotime($date)); //Высокосный?
if ($isLeapYear && $dayOfYear >59) {
--$dayOfYear;
}