Page 1 of 1

Date (timezone) Configuration

Posted: Tue May 13, 2008 12:07 pm
by SpecialK
In the process of moving to a new server so we upgraded the PHP from 5.0.x to 5.2.5

Now I'm having the issue of the timezone. I understand that if no timezone is set, then a flag will be thrown. I have tried putting in the values to use the timezone = America/Winnipeg, or even tried America/Chicago but although I don't see the error on the webpage I see it in the logs.

Is this intended to work this way, even when the php.ini is set to pull a timezone?

Trying to do a phpinfo, I found this with the date:
(inside the PHP core)

Code: Select all

 
[Date]
; Defines the default timezone used by the date functions
date.timezone = America/Winnipeg
 
and then later on

Code: Select all

 
date
date/time support   enabled
"Olson" Timezone Database Version   2007.9
Timezone Database   internal
Default timezone    America/Chicago
 
Directive   Local Value Master Value
date.default_latitude   31.7667 31.7667
date.default_longitude  35.2333 35.2333
date.sunrise_zenith 90.583333   90.583333
date.sunset_zenith  90.583333   90.583333
date.timezone   no value    no value
 
Now it looks like although php.ini is setting the timezone, for some reason it isn't setting it throughout PHP. Is there some config setting I am missing here?