Req #63339 [Opn->Wfx]: Set a useful default for date.timezone option
| From: | derick@php.net | Date: | Sat, 19 Mar 2016 22:21:32 +0000 |
| Subject: | Req #63339 [Opn->Wfx]: Set a useful default for date.timezone option | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-199952@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63339&edit=1
ID: 63339
Updated by: derick@php.net
Reported by: dirkjan at ochtman dot nl
Summary: Set a useful default for date.timezone option
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: *Configuration Issues
PHP Version: 5.4.8
Block user comment: N
Private report: N
New Comment:
If it was easy to get the timezone from the OS (it isn't), we would have done so. Since PHP
5.6, the default is now UTC and does not look at the OS at all any more, and there is no warning any
more either.
Previous Comments:
------------------------------------------------------------------------
[2016-03-19 21:17:10] ctd682001 at yahoo dot com
I am using version 5.6.17 and I am having a similar problem. Specifically with Raspbian. PHP
reports the timezone as MDT when I have it configured for America/Phoenix which is MST year round.
Not sure where PHP is getting timezone information but my /etc/timezone says America/Phoenix. If I
set default_timezone to America/Phoenix in script the time is correct.
------------------------------------------------------------------------
[2013-07-04 07:27:26] bmassot at free dot fr
On Linux the guess_timezone() function of ext/date/php_date.c could try to look at /etc/timezone.
------------------------------------------------------------------------
[2012-10-23 08:58:59] dirkjan at ochtman dot nl
Description:
------------
It's pretty silly that PHP requires setting an explicit date.timezone. On both Unices and
Windows, it should be pretty easy to get a default timezone from the OS.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63339&edit=1