mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
The time in the PHP log is incorrect. #305
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andykao1026 on 12/14/2023
CloudPanel version(s) affected
2.4.0
Description
How can I change the time format in PHP logs? I've already modified the timezone settings in the Additional Configuration Directives in the dashboard and also adjusted the timezone settings in /etc/php/8.0/fpm/php.ini. After restarting NGINX and PHP, the time in /home/anenergy/logs/php/error.log is still incorrect.
Incorrect time: [07-Dec-2023 01:24:27 UTC] PHP Warning:
Correct time: [07-Dec-2023 09:24:27 CST] PHP Warning
How to reproduce
How can I change the time format in PHP logs? I've already modified the timezone settings in the Additional Configuration Directives in the dashboard and also adjusted the timezone settings in /etc/php/8.0/fpm/php.ini. After restarting NGINX and PHP, the time in /home/anenergy/logs/php/error.log is still incorrect.
Incorrect time: [07-Dec-2023 01:24:27 UTC] PHP Warning:
Correct time: [07-Dec-2023 09:24:27 CST] PHP Warning
Possible Solution
No response
Additional Context
No response