Web Weather > Weather Web Site Help
Another sunposa problem
(1/1)
W Thomas:
I keep getting the following errors when I try to display the sjy position chart. I have entered the time zone for my area to what I thought was correct but the script seems to disagree. (America_New York ) Any suggestions?
Thanks
Notice: date_default_timezone_set(): Timezone ID 'America/New York' is invalid in /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/Settings.php on line 351
Warning: session_start(): Cannot start session when headers already sent in /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/include-style-switcher.php on line 29
Notice: date_default_timezone_set(): Timezone ID 'America/New York' is invalid in /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php on line 1092
Notice: date_default_timezone_set(): Timezone ID 'America/New York' is invalid in /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php on line 2124
Fatal error: Uncaught Error: Call to undefined function gregoriantojd() in /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php:2428 Stack trace: #0 /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php(2136): calcMoonRiSet->getJulianDate(1743566400) #1 /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php(2115): calcMoonRiSet->setDate('2025', '4', '2') #2 /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php(1382): calcMoonRiSet->__construct('36.601389', '-81.538056', 'America/New Yor...') #3 /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php(166): get_sunmoon(true, '36.601389', '-81.538056', 'America/New Yor...') #4 {main} thrown in /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php on line 2428
Vasco:
Try America/New_York for the TZ (see https://www.php.net/manual/en/timezones.america.php), and then run sunposa.php?debug=y in your browser. I expect it will tell you that
function 'gregoriantojd()' is not available
and you should ask your host to enable calendar in PHP.
Navigation
[0] Message Index
Go to full version