Edit report at https://bugs.php.net/bug.php?id=60723&edit=1
ID: 60723 Comment by: tomop at teamgedoh dot net Reported by: olemarkus at gentoo dot org Summary: error_log error time has changed to UTC ignoring default timezo Status: Open Type: Bug Package: *General Issues Operating System: Gentoo Linux PHP Version: 5.3.9 Block user comment: N Private report: N New Comment: I have the same problem. The "localtime" argument passed to the php_format_date() function was changed from 1 to 0 between 5.3.8 and 5.3.9. Did it cause the problem? In /[svn]/php/php-src/branches/PHP_5_3/main/main.c *revision 319750, line 602: error_time_str = php_format_date("d-M-Y H:i:s", 11, error_time, 1 TSRMLS_CC); *revision 319823, line 602: error_time_str = php_format_date("d-M-Y H:i:s e", 13, error_time, 0 TSRMLS_CC); Previous Comments: ------------------------------------------------------------------------ [2012-01-12 09:08:22] olemarkus at gentoo dot org Description: ------------ PHP error log no longer respects timezone and always logs in UTC. Setting error_log to a filesystem path and date.default_timezone to e.g Europe/Oslo gives the following log lines in 5.3.8: [12-Jan-2012 10:02:38] PHP Notice: Undefined variable: foo in /home/htdocs/index.php on line 3 [12-Jan-2012 10:02:38] PHP Fatal error: Call to a member function bar() on a non-object in /home/htdocs/index.php on line 3 While in 5.3.9 you get: [12-Jan-2012 09:06:00 UTC] PHP Notice: Undefined variable: foo in /home/htdocs/index.php on line 3 [12-Jan-2012 09:06:00 UTC] PHP Fatal error: Call to a member function bar() on a non-object in /home/htdocs/index.php on line 3 Also see downstream bug: https://bugs.gentoo.org/show_bug.cgi?id=398445 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60723&edit=1