When checking php.ini, both from phpinfo and php -i on the command line, my time zone is set to Africa / Johannesburg. Therefore, my time zone is GMT +2.
I wrote a small snippet to check the correct time:
echo date('h:i A', time()); echo '<br />' . ini_get('date.timezone');
and this outputs the correct time corresponding to my local system time.
However, when I look at my php error log, is the time on each element of the error log exactly two hours behind? Why is this and how can I fix it.
There are also problems with Zend Cache, and I think this time issue is causing it.
source share