basil Posted December 31, 2006 Share Posted December 31, 2006 I'm using the sunrise function pretty much as per the manual.PHP Code:echo "<font size='-4'>".date_sunrise(time(), SUNFUNCS_RET_STRING, -28.0361, 148.5814, 90, 10) ."</font>"; But, the time it returns is 29.13, where actual sunrise is 5.13.My server is on PST time (GMT -8) and I want sunrise for GMT +10, which is where I am, and where the target audience isIt can be viewed at http://www.maranoa.org.au/xoops/index.php.My questions are:how do I fix it?Some people say they see it OK - as in 5.13. Why is that?Look forward to your reply. Link to comment https://forums.phpfreaks.com/topic/32418-unexpected-result-in-php-sunrise/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.