<?php
$data = date("d-m-Y");
echo $data; echo "<br>";
$time = date('H:i:s', time());
echo $time;
?>
I have a little problem: - between 00:00:00 and 01:00:00 (for 1 hour) the server day return yesterday, but the time is correct; - between 01 and 00 (for 23 hours) the date (day) is correct, but the time is time-1 hour.
What is wrong? How can I fix this? Thank you
PS. Please, excuse my bad English.