The web pages that I am currently writing (in PHP) report errors including a timestamp to the file /home/xxxxxxx/logs/main.log. The times reported are UTC. I have the following in my PHP:
which I believe should set it to use the stated timezone throughout my site, which should (I think) recognise DST, so should now report UTC +01:00. It is not doing so.
I thave changed the PHP code that writes to the log file to this:
$logmsg = gmdate("[d-M-Y H:i:s e I P T] ") . "on " . $hostname . " " ....
and it is now outputting:
[06-Apr-2017 16:19:50 UTC 0 +00:00 GMT] on localhost L_TRACE at line 96 ....
from which you can see that it thinks it is outputting UTC. I think the problem is that it is just not switching to the timezone I have requested.
Please can you suggest why it is not outputting GMT/DST, i.e. UTC +01:00, or what I need to do to find out what is causing this problem?
Thank you - Rowan
Edited by TCH-Bala, 07 April 2017 - 06:54 PM.
edited out username