Now that I'm strictly developing on PHP 5 servers, one error that keeps popping up on some pages that didn't pop up under PHP4 is the following:
error occurred in script '/home/user220/public_html/script.php' on line 377:
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
Date/Time: 5-9-2008 16:23:37
Obviously I'm using date functions and that is what's causing this. Now to get around this, I've just been adding this to all my php pages:
Code: Select all
date_default_timezone_set('America/New_York');Is there some sort of SERVER WIDE setting I can set the timezone at? And also, is there any reprecussion for setting my scripts timezone's to America/New_York? I mean, obviously not everyone who will be using the scripts will be on Eastern Standard Time, or in America at all. What will happen to someone on say, the west coast, who uses a script that outputs time related data with the timezone set to EST?
I'm really unsure about all this, but I know one thing... it's really bugging me.
Thank you so much for any guidance on this matter... take care!