Time Stamp off/ahead 1 hour in php script
I have a time stamp in my form results script, but the time stamp is ahead 1 hour. C开发者_运维问答an anyone tell how to adjust the time stamp to be accurate? or is this just on my pc?
Here is my current code:
$Body .= date("Y-m-d H:i A e");
You can set the timezone if you have access to the .htaccess file
SetEnv TZ "location"
location is the timezone you want to set.
You might want to check the timezone on your server. Most likely, the timezone is set 1 hour differently there than you are expecting.
精彩评论