|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-04-18 17:44 UTC] dtajchreber@php.net
-Status: Open
+Status: Bogus
[2011-04-18 17:44 UTC] dtajchreber@php.net
[2011-04-18 21:22 UTC] jistanidiot at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 19:00:01 2025 UTC |
Description: ------------ In my php.ini file I have date.timezone = "America/New_York" However I keep getting the error Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 in /var/www/html/gallery3/test.php on line 2 and this isn't just for phpinfo but everything I've tried dealing with dates and times. The only workaround I've found is to put date_default_timezone_set('America/New_York'); at the start of all my scripts.