Answer the question
In order to leave comments, you need to log in
How to set the time in mail php for sending requests from the site?
Hello
everyone, there is mail.php, applications from the site are sent through it, and in the process of sending the file adds some information about the user, such as ip, browser name, and the time at which the application was made.
Actually the question is how to set the time adjustment, because the date that is displayed in the letter is not in my time zone.
Tried to add UTC+, set date_default_timezone_set() in this file itself, but was unsuccessful.
here is that part of the code
$ip=$_SERVER["REMOTE_ADDR"];
$browser=$_SERVER["HTTP_USER_AGENT"];
$referer = getenv('HTTP_REFERER');
$date = date("dmy");
$time = date("H:i");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question