I have a simple email form on my website and it works well. It tells me the time that the message was sent, only it is using the timezone of the server, not of my location. Below is a piece of the code that pertains to the time....What do I need to change if I am -5 hours of GMT? (my server is at GMT)
if (! $_POST) {
$_POST = "$HTTP_POST_VARS";
}
if (! $_SERVER) {
$_SERVER = "$HTTP_SERVER_VARS";
}
$year = date("Y");
$month = date("m");
$day = date("d");
$hour = date("h");
$min = date("i");
$tod = date("a");
$ip=$_SERVER["REMOTE_ADDR"];
$SEND_prnt = "The message below was sent by: " . $_POST{"email"} . " from Ip address: $ip on $monthnameactual $month/$day/$year at $hour:$min $tod \n";
$SEND_prnt .= "-------------------------------------------------------------------------\n\n";
Thanks for any help I can get.