I have a form with a date/time stamp that is one hour off. Here is the code:
$datee = date("F jS, Y h:i:s a");
It reads an hour earlier than the current local time. What am I doing wrong? How do I fix it?
Originally posted by drshaggy It reads an hour earlier than the current local time.
your code displays the current date/time from the server's clock. if you (the client) are not in the same time zone as the server then the time will be off. where are you and where is your server?
I'm in Florida, the server is in Texas. That explains it. I was looking for a code problem. Never overlook the obvious I guess. Thanks