Jump to content

submit timestamp not as expected


webguync

Recommended Posts

Hi,

I am testing out a form and have a timestamp field set up in MySQL. In my PHP script I have this:

date_default_timezone_set('America/New_York');

 

the time that displayed in the database is 2010-02-25 13:32:31, which I believe is 3:32? Anyway, I submitted the form at 4:32 EST, so it seems to be off an hour for some reason. Anyone know why?

 

 

Link to comment
https://forums.phpfreaks.com/topic/193404-submit-timestamp-not-as-expected/
Share on other sites

The mysql server is compltely separate from the web server/php.

 

You would need to set the mysql time zone. Unless you have administrative access to the mysql server, you would need to use a per-connection setting - http://dev.mysql.com/doc/refman/5.0/en/time-zone-support.html

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.