From f668940a9f3dd816ab3e09f65a9d247965b981a4 Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Fri, 3 Jul 2020 18:56:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B0=D0=BD=20=D0=B7=D0=BD=D0=B0=D0=BA=20=D0=B7=D0=BE=D0=B4?= =?UTF-8?q?=D0=B8=D0=B0=D0=BA=D0=B0=20=D0=BD=D0=B0=20=D0=B1=D0=BE=D0=BB?= =?UTF-8?q?=D0=B5=D0=B5=20=D1=82=D0=BE=D1=87=D0=BD=D1=8B=D0=B9=20(NON=20WE?= =?UTF-8?q?LL=20FORMED=20NUMERIC=20VALUE=20ENCOUNTERED=20IN=20PHP=20DATE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }