Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 398445

Summary: dev-lang/php-5.3.9_rc4 - error_log error time has changed to UTC ignoring default timezone
Product: Gentoo Linux Reporter: Johnny <jonnykent>
Component: [OLD] ServerAssignee: PHP Bugs <php-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: https://bugs.php.net/bug.php?id=60723
Whiteboard:
Package list:
Runtime testing required: ---

Description Johnny 2012-01-10 23:33:22 UTC
Upgraded to php5.3.9RC4 from 5.3.5-r1 with Default timezone	America/Los_Angeles and system time same timezone
old error log showed entries in local time like 
[28-Dec-2011 16:21:15] PHP Fatal error:  require()
now error log shows like
[10-Jan-2012 20:34:21 UTC] PHP Warning:  session_start():

Reproducible: Always

Steps to Reproduce:
1. install php5.3.9RC4
2. set php.ini date.timezone = America/Los_Angeles
3. inspect error log entry times
Actual Results:  
[10-Jan-2012 20:34:21 UTC] 

Expected Results:  
[10-Jan-2012 12:34:21] 

correct times show for both server bash date and php scripts, e.g.
<?php echo date("r"); ?> returns Tue, 10 Jan 2012 15:17:18 -0800
and a couple mins later from bash date returns Tue Jan 10 15:19:59 PST 2012  
Found a resolved related bug upsteam  from quite a while back https://bugs.php.net/bug.php?id=45191
Comment 1 Ole Markus With (RETIRED) gentoo-dev 2012-01-12 09:10:36 UTC
Confirmed. Timezone is respected in 5.3.8, while it is not in 5.3.9

Upstream bug reported: see $URL
Comment 2 Ole Markus With (RETIRED) gentoo-dev 2013-01-02 18:03:52 UTC
This was fixed around PHP 5.4.8