Hello! I had a problem with time. And not on 1, but on several hostings at once. The essence of the problem is as follows:
I have a datetime field in the table table , well, we write the current date there and everything is ok. The time is right. But when I want to display it in the format I need , I use the date and strtotime functions . Like this:
$human-date-time = date("dmY H:i", strtotime($sql_result['datetime']));
And here in the $ human-date-time variable, the time is one hour later than recorded in the database. Local time is correct. The time zone in PCP is Europe / Moscow .
How to make (preferably through .htaccess) time was normal? Again, this is on several hosts and on my local machine.
PS if you put the zone Europe / London then everything is ok. Time is right