Bug #61013 [Com]: Php logging to a file now defaults to UTC?
| From: | carloschilazo at gmail dot com | Date: | Wed, 08 Feb 2012 21:05:40 +0000 |
| Subject: | Bug #61013 [Com]: Php logging to a file now defaults to UTC? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-167312@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61013&edit=1
ID: 61013
Comment by: carloschilazo at gmail dot com
Reported by: mgoebel at emich dot edu
Summary: Php logging to a file now defaults to UTC?
Status: Open
Type: Bug
Package: Date/time related
Operating System: Solaris 10, and SLES 11.1
PHP Version: 5.3.10
Block user comment: N
Private report: N
New Comment:
The issue was that the local time flag was set to 0, with attached fix the local
time flag is now fixed and the log string now contains the local time instead of
UTC
Previous Comments:
------------------------------------------------------------------------
[2012-02-08 16:20:36] mgoebel at emich dot edu
Description:
------------
I have a pretty generic setup on both Solaris 10 and SLES 11.1, and both setups have
"date.timezone = America/Detroit" in their php.ini files. After I upgraded from 5.3.8 to
5.3.10 all of the log entries are now using UTC instead of the localy defined timezone.
[08-Feb-2012 09:59:38] PHP Deprecated: ...
[08-Feb-2012 09:59:38] PHP Deprecated: ...
[08-Feb-2012 15:00:15 UTC] PHP Deprecated: ...
[08-Feb-2012 15:00:15 UTC] PHP Deprecated: ...
[08-Feb-2012 15:00:37 UTC] PHP Warning: ...
All of webpages seem to be handing date/times correctly, just the logging seems to be having issues.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61013&edit=1