PHP Data/Timezone Problems, Slackware 14.0, php-5.4.7-x86_64-1
I have a PHP application (PHPGedView) that yammers at me:
Quote:
Code:
[Date] Code:
date/time support enabled I have tried setting the value to "America/Detroit" which phpinfo.php displays as Code:
date/time support enabled Quote:
My hardware clock is set to UTC and I define US/Eastern when setting the system timezone. Is there something I've missed? |
|
Thanks for the link but... I've already done all that, no joy in Mudville.
I'm beginning to suspect that PHPGedView is kaput. Sigh. |
All right, got it more-or-less fixed (I blew away the application and re installed it).
You pretty much have to edit /etc/httpd/php.ini to define your date.timezone (PHP will no longer use the system date and you'll get all the errors if you use any of the date functions). I happen to be in the U.S. eastern time zone and, even though there is a setting for Detroit (I'm in northern Michigan) I just chose to use the New York setting: Code:
vi /etc/httpd/php.ini I also un-commented the latitude, longitude and zenith settings but that doesn't appear to be necessary. The reference material is found at http://www.php.net/manual/en/class.d...stants.america, including a list of the supported time zones (at the left edge of the web page). When you change /etc/httpd/php.ini, you'll need to restart the httpd daemon. You can then use a phpinfo.php file to display the Date values. Hope this helps some. |
All times are GMT -5. The time now is 06:14 PM. |