Re: Wrong time being displayed by PHP!

From: Date: Wed, 17 Oct 2012 18:56:34 +0000
Subject: Re: Wrong time being displayed by PHP!
References: 1 2 3 4 5 6 7 8 9  Groups: php.general 
Request: Send a blank email to php-general+get-319505@lists.php.net to get a copy of this message
On Wed, 17 Oct 2012, Richard S. Crawford wrote:
I've confirmed that the server is set to PDT. The value of date.timezone in php.ini is "America/Los_Angeles", which should be (currently) -8 hours from UTC, but it looks like the PDT offset is only set to -4. Does that even make sense?
Actually, PDT is UTC minus 7, not 8. But that's not the point. I know people are pointing at a configuration issue, and it may well be. But the fact that PHP seems to have the correct idea for what UTC is suggests that perhaps either PHP or the (presumably) C routines that it uses may be at least contributing to this. This is not the first time I've seen strangeness with default timezones, and I guess there's a reason why using them generates a warning. Best to deliberately set your timezone. Now if it still does it when you actually set it to America/Los_Angeles then we've got a bigger problem. Geoff.

« previous php.general (#319505) next »