Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 398445 - dev-lang/php-5.3.9_rc4 - error_log error time has changed to UTC ignoring default timezone
Summary: dev-lang/php-5.3.9_rc4 - error_log error time has changed to UTC ignoring def...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: PHP Bugs
Depends on:
Reported: 2012-01-10 23:33 UTC by Johnny
Modified: 2013-01-02 18:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
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
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