Переделан знак зодиака на более точный (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[51] = "12";
|
||||||
$zodiac[20] = "11";
|
$zodiac[20] = "11";
|
||||||
$zodiac[0] = "10";
|
$zodiac[0] = "10";
|
||||||
(int)$dayOfYear = date("z", $date);
|
$dayOfYear = date("z", strtotime($date));
|
||||||
(int)$isLeapYear = date("L", $date); //Высокосный?
|
$isLeapYear = date("L", strtotime($date)); //Высокосный?
|
||||||
if ($isLeapYear && $dayOfYear >59) {
|
if ($isLeapYear && $dayOfYear >59) {
|
||||||
--$dayOfYear;
|
--$dayOfYear;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user