but that function yields slightly different results since zenith angles for sunrise/sunset/twilights are hardcoded internally
and they are different to what zf used before (see $horizonDeclination in Zend_Date::calcSun() - moved from Zend_Date::_checkLocation())
Yet ONLY NOW they are accurate! (calculations for civil / nautical / astronomical twilight were totally wrong before)
date_sunset()
anddate_sunrise()
are deprecated in php 8.1+ - switched to recommendeddate_sun_info()
function (which is available since php v5.1) https://www.php.net/manual/en/function.date-sun-info.php#refsect1-function.date-sun-info-returnvaluesbut that function yields slightly different results since zenith angles for sunrise/sunset/twilights are hardcoded internally and they are different to what zf used before (see
$horizonDeclination
inZend_Date::calcSun()
- moved fromZend_Date::_checkLocation()
)Yet ONLY NOW they are accurate! (calculations for civil / nautical / astronomical twilight were totally wrong before)