Re: Think I found a PHP bug
| From: | Tim Streater | Date: | Tue, 15 Nov 2011 22:58:00 +0000 |
| Subject: | Re: Think I found a PHP bug | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-315701@lists.php.net to get a copy of this message | ||
On 15 Nov 2011 at 22:34, Geoff Shang <geoff@QuiteLikely.com> wrote:
> The bug is that if a server's timezone is set to Europe/London and you
> don't set an explicit timezone in your script, if it's winter time in
> the UK, PHP thinks the timezone is UTC instead of Europe/London.
I find I need to do this:
date_default_timezone_set (@date_default_timezone_get ());
in all my scripts since 5.x.x to avoid rude messages.
--
Cheers -- Tim