2

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: ...
2

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

| improve this answer | |
  • what you refer to as the bug, it was a) not PHP but syslog; b) it was standard behavior of syslog; – silpol Aug 16 '18 at 13:16
  • I don't think you are right. The php-fpm log is usually written directly by php-fpm and doesn't go through syslog first. Please read the bug I have linked. – Christopher Perrin Aug 17 '18 at 14:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.