|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61013 Php logging to a file now defaults to UTC?
Submitted: 2012-02-08 16:20 UTC Modified: 2012-02-09 00:26 UTC
From: mgoebel at emich dot edu Assigned:
Status: Duplicate Package: Date/time related
PHP Version: 5.3.10 OS: Solaris 10, and SLES 11.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
41 - 28 = ?
Subscribe to this entry?

 [2012-02-08 16:20 UTC] mgoebel at emich dot edu
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.


LocalTime_flag_fix_for_error_reporting (last revision 2012-02-08 21:04 UTC by carloschilazo at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-08 21:05 UTC] carloschilazo at gmail dot com
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 
 [2012-02-09 00:26 UTC]
-Status: Open +Status: Duplicate
 [2012-02-09 00:26 UTC]
Duplicate of bug #60723.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Apr 12 13:01:23 2021 UTC