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.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to