Edit report at http://bugs.php.net/bug.php?id=54559&edit=1

 ID:                 54559
 User updated by:    jistanidiot at gmail dot com
 Reported by:        jistanidiot at gmail dot com
 Summary:            php ignoring date.timezone setting
 Status:             Bogus
 Type:               Bug
 Package:            Date/time related
 Operating System:   RHEL 6
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

Ah you're right it is looking for php.ini in /usr/local/etc which is not
the right place.  I've recompiled and added the option
--with-config-file-path=/etc and now everything is good.  Thanks!


Previous Comments:
------------------------------------------------------------------------
[2011-04-18 17:44:18] dtajchre...@php.net

Are you modifying the right configuration file for the SAPI you're
using? 

phpinfo() and php --ini will show you which configuration files are
loaded... is 

that the file you have date.timezone = "America/New_York" in?

------------------------------------------------------------------------
[2011-04-18 17:05:40] jistanidiot at gmail dot com

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.





------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=54559&edit=1

Reply via email to