Linux – PHP-FPM timezone in the log files

linuxphp-fpm

The PHP-FPM logs have different timezone. The time in the PHP-FPM logs is one hour behind the system time. Is there any option to configure time/zone in the PHP-FPM?

System: CentOS

# date
Mon Jul  9 17:33:10 BST 2012

# cat /etc/sysconfig/clock 
ZONE="Europe/London"

# grep "date.timezone =" /etc/php.ini 
date.timezone = Europe/London

# tail /var/log/php-fpm/error.log
[09-Jul-2012 16:21:58 UTC] PHP Notice: ...

Best Answer

PHP currently only logs in UTC. This is a bug.