Jump to content

php email form uses time stamp of server - how to adjust this


CCKitty

Recommended Posts

I am using a form for email contact from a website.  The email arrives stating that it was sent at such & such a time...but that time is not correct for our time zone.  Is there anything in the code snip below that can be changed or added to correct the time zone?  (-5)

 

 

--------below is part of the code---------

 

 

 

$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";

 

 

 

---------end of code-----------

 

Thanks for any help or advice.

 

CCK

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.