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
Share on other sites

I was able to find an SSH client and access the MySQL server. When I try this command, it returns a NULL instead of changing the timezone(which is currently on the WST. Anyone know why?

 


CONVERT_TZ('2010-03-02 12:00:00','us/Pacific','US/Eastern');

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.