Переделан знак зодиака на более точный
This commit is contained in:
parent
be6b2e61da
commit
dfce86a6bc
@ -2027,8 +2027,8 @@ function star_sign($date)
|
||||
$zodiac[51] = "12";
|
||||
$zodiac[20] = "11";
|
||||
$zodiac[0] = "10";
|
||||
$dayOfYear = (int)date("z", $date);
|
||||
$isLeapYear = (int)date("L", $date); //Высокосный?
|
||||
(int)$dayOfYear = date("z", $date);
|
||||
(int)$isLeapYear = date("L", $date); //Высокосный?
|
||||
if ($isLeapYear && $dayOfYear >59) {
|
||||
--$dayOfYear;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user