Jump to content

Archived

This topic is now archived and is closed to further replies.

Tehcheese

adodb-time.inc.php : 934 error

Recommended Posts

adodb-time.inc.php : 934 error

ok, this is for a game log parser thingy, it used to work when i edited the line 934 ages and ages ago to London GMT time.. but i forgot how to do it now, and the site i got it from is nomore.


here is the message


The error is : date() [function.date]: 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

i want it to select Europe/London GMT+0
Code: of line 934

[code]return ($is_gmt)? @gmdate($fmt,$d): @date($fmt,$d);[/code]

i only edit this line in the code and it all worked, i just cant find the tutorial to do it again


please help me
full source code is here

[url=http://www.tehcheese.com/adodb-time.inc.txt]http://www.tehcheese.com/adodb-time.inc.txt[/url]

thanks.
________

Share this post


Link to post
Share on other sites
If you are using php5 or greater, above that line, put this line:

[code]date_default_timezone_set("Europe/London");[/code]

Which should elminate the error.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.