Yes m8 i uploaded all files except, readme, the .sql and the changelog, I even deleted all the
tables and reimported the tables again…
Where is this $myTZ = i cannot find it in the settings page?
Yes m8 i uploaded all files except, readme, the .sql and the changelog, I even deleted all the
tables and reimported the tables again…
Where is this $myTZ = i cannot find it in the settings page?
Henrik,
I tested my code on my dev server and it is OK
what is the url to the page with the time problem?
Anybody reporting problems please post the URL, thanks
This is in the readme.txt from now on …
Problem:
sometimes the times for the visitors online are not in your desired timezone:
If your server is in a different time zone and you desire a time offset, here is how…
Solution:
(carterlake php template sites)
correctly set the timezone setting inside Settings.php
$SITE[‘tz’]
(non-carter lake template users)
change America/Los_Angeles if needed and put this code in your Settings.php file right above the code you put in during Step 6)
// this sets the timezone for this php script
// http://saratoga-weather.org/timezone.txt has the list of timezone names
// pick the one that is closest to your location
$myTZ = 'America/Los_Angeles';
putenv("TZ=$myTZ");
This error is my fault, I will fix it now …
everybody stand by for next update (just 2 files to replace.)
Fatal error: Call to undefined function check_for_settings()
Up and running, thanks for a great script!
For the time-issue i ported the code from the 1.0-version and it works. When updated to the newest version I don’t get any times at all shown there but else a great script!
Henkka
Version: 1.02 14-Dec-2008
Wow, that was quick, thank you very much, its working a treat now
I have just sent you a little something through PP, it aint much but its something
I just noticed that the times are showing as 8:22 am and its actually 9:00pm here
I have added
$myTZ = ‘Europe/London’;
putenv(“TZ=$myTZ”);
to my settings, without it in there it was showing UTC so thats working a little
bashy, thanks
I thing your server clock is off time, ask your web host to check it. Most servers nowadays can have a time update service running.
I had to ask my host to do that.
No probs m8
I am my web host, its a dedicated server, thing is all other times on it are correct, my forum
says All times are GMT. The time now is 09:08 PM.
I might be wrong but im sure it was ok before you updated the script…
Hi again Mike
I just installed the latest .zip - but still 12-hour time format:
Best regards,
Henrik
Hi again
Problem solved.
I changed h:i:s to H:i:s in the include-whos-online-page.php file.
Thank you very much for a great script.
Best regards,
Henrik
I have just found a reasonable IP geolocator page, it works well as long as you use this URL
geo-location.com in the script, this one has a map, not overly
accurate but it aint too bad
Thanks, i will put that in the comments above the whois_url setting.
The locator part for my ISP is off by about 1,000 mile though, hope my enemies use it, hee hee
No probs, that one is about 200 mile out, for me anyway lol…
This one is for Henrik who likes to change time from 12 hour to 24 hour
you do not have to upgrade from 1.02 if you don’t need to change the setting.
Version: 1.03 14-Dec-2008
Download
http://www.642weather.com/weather/scripts/whos-online.zip
Hi!
One thing, the times in the “Vistors online”-display are still in 12-hour-format, see attachment. The 12.54 CET is deffinitely wrong with H:i-setting (Are at 01.20 CET now).
Looked at the database and there they are saved wrongly too, as 11.09 even if they was at 23.09 (Don’t know how you Americans do that but for me it looks wrong :lol:)
best regs
Henkka
Are you using the latest version? 1.03?
changing the time format settings only changes the display times, not what is stored in the database.
Maybe you are having a timezone issue
see “Known issues” in the readme.txt
Just got home and loaded the new scripts up, all seems to be working well. The style switcher php did the trick for the screen size issue!
Thanks Mike.
Regards,
Jack
Version: 1.04 14-Dec-2008
I think I got all the bugs worked out, it should be stable now.