Переделан знак зодиака на более точный (NON WELL FORMED NUMERIC VALUE ENCOUNTERED IN PHP DATE)
This commit is contained in:
parent
dfce86a6bc
commit
f668940a9f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user