Wrong date/timezone shown in admin>server information

php 5.6, correct /etc/localtime and no TZ env var as you can see I have all the default configs:

As you said, according to the php documentation it should return UTC, I have no idea why the Europe/Paris.
Just searched for possible files where that could be set but did not find anything.
tz2

Anyway, even if it was returning UTC, the server info would still be wrong, as the correct is WEST / UTC+01 so I just ended up setting the PHP timezone in both cli and apache configs and it now is working correctly. If anyone is interested, the two files that need to be edited to uncomment and change date.timezone = “Europe/Lisbon” are:
tz3

I’ve found out that this is one of the steps in the instructions of the LinuxInstall.md, since I’m using a vanilla emonPI with the latest updates I’ve never followed that.

1 Like