Timestamp off by 10 minutes
I have been using the same code for quite some time and just recently it is off by 10 minutes. I am using the following code to put into a mysql table (varchar).
Can anyone help me to get the time back on track. I have even tried to set the time zone.
<input type="hidden" name="timestamp" value="<?php echo date('g:i a'); ?>" />
This would pull from whatever time the server is set to. You may want to contact your host.
Can you expand on what "off by 10 minutes" means?
You're capturing a generic time in "hh:mm am" format. What are you comparing it to, that says you are off by 10 minutes? When are you comparing it when you find that it's 10 minutes off?
As cbVision mentioned, because you don't specify a timestamp, it's using the server's clock. Is "Your" clock 10 minutes off of the "server's" clock?
Originally Posted by php.net
Where is your server host?
Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
I laughed that hard I burst my colostomy bag... (\\.\ May03)
Life for some is like a car accident... Mine is like a motorway pile up...
Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)