diff --git a/functions.php b/functions.php index bd2d9bc..2e94981 100644 --- a/functions.php +++ b/functions.php @@ -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; }