get_localdate not working on astronomy pages

Hi everybody!

First post here, and I’d like to start off by telling you how much you’ve already helped me: I’ve been lurking and using/abusing the search function for a while, and have learned a lot already. So, thank you!

But this has me stumped: i just noticed that on wxastonomy the local time for New Moon, Vernal Equ, Summer soltice and Winter solstice all show “01/01/1970 01:00”, and the same for New Moon on wxastro5. All the other local times are converted correctly from UTC. The testtags are uploading, and UTC times are showing for all Moons, Equinoxes and Solstices…

Can be seen here:

Had ALL been wrong I might have been able to figure something out, but since some work and some don’t I’m lost. Hope somebody can shed some light?



No suggestions?

I have tried to copy and paste from one of the working ones, no luck, and I have tried to DL and copy a new wxastronomy.php to be sure that I hadn’t inadvertently changed something, but still no joy.

Searches for “get_localtime” both here on the forum and on Google hasn’t given me any working results either.



Sorry, typo: I have searched for localdate, not localtime… :oops:

You need to change Settings.php to have the list of month names in Norwegian – your computer is producing the dates in Norwegian and PHP expects them to be in English.

Try changing

$SITE['monthNames'] = array(  // for wxastronomy page .. replace with month names in your language 


$SITE['monthNames'] = array(  // for wxastronomy page .. replace with month names in your language 

Best regards,

Thank you! :smiley:

You’re absolutely right.
I have WD running in english on the pc, so I didn’t change those months when I set the template up.
And when I checked the uploaded testtags.php before posting I saw that the $dayname is in english, and november is spelled the same in norwegian and english, so I assumed… #-o

On to tweak some more