This topic is locked

Local Time Warning

7/7/2007 5:43:51 AM
PHPRunner General questions
W
willpower author

Hi
I have the following warning generated by runner...
PHP error happened

Technical information

Error type 2048

Error description localtime() [function.localtime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead

URL www.radioworm.co.uk/admin/match_commentaries_list.php

Error file /chroot/home/radiowor/radioworm.co.uk/html/admin/include/locale.php

Error line 258

SQL query select `id`, `date`, `time`, `opponents` From `match_commentaries`
Can anyone help?

W
willpower author 7/7/2007

I bypassed it and all now works. I just changed localtime(time(),1) to time()

W
willpower author 8/13/2007

I have found the correct way to do this. Open u the DB common file and add the following line
ini_set("date.timezone","Europe/London");
Replace Europe/London with your corresponding accepted timezone (can be found in the php.net manual.
I have now written this line into the DBcommon file included in the PRogram files of PHP Runner. This prevents me having to add it to each new build

Will