Переделан знак зодиака на более точный

This commit is contained in:
Igor Barkov (iwork) 2020-07-03 18:48:09 +03:00
parent be6b2e61da
commit dfce86a6bc

View File

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