Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In my php.ini I have date.timezone = America/Puerto_Rico but the PHP time is an hour behind. When I look at phpinfo() it says

date
date/time support   enabled
"Olson" Timezone Database Version   2008.2
Timezone Database   internal
Default timezone    US/Central

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   America/Puerto_Rico America/Puerto_Rico`

Why does it say the default timezone is US/Central even though it knows that date.timezone is set?

Thanks

Edit: I've looked for ini_set, putenv, and data_defualt_timezone_Set and don't have any of them. This is a server wide problem to.

share|improve this question
add comment

2 Answers

Try to use " as delimiter:

date.timezone = "America/Puerto_Rico"

And reload apache!

share|improve this answer
add comment

Make sure you're not over-riding the value in another file. You can set that value in any one of a hundred places.

share|improve this answer
    
I've looked for ini_set, putenv, and data_defualt_timezone_Set and don't have any of them. –  user46642 Jul 13 '10 at 14:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.