Req #63339 [Com]: Set a useful default for date.timezone option
| From: | ctd682001 at yahoo dot com | Date: | Sat, 19 Mar 2016 21:17:13 +0000 |
| Subject: | Req #63339 [Com]: Set a useful default for date.timezone option | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-199951@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
Comment by: ctd682001 at yahoo dot com
Reported by: dirkjan at ochtman dot nl
Summary: Set a useful default for date.timezone option
Status: Open
Type: Feature/Change Request
Package: *Configuration Issues
PHP Version: 5.4.8
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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