How does timezone really work in relation to PHP and MYSQL?

Posted by Rick on Stack Overflow See other posts from Stack Overflow or by Rick
Published on 2011-11-30T00:35:40Z Indexed on 2011/11/30 1:50 UTC
Read the original article Hit count: 151

Filed under:
|

I am getting very strange results in terms of timezones. I am currently using Wordpress and everytime I register a new user, I see the wrong datetime in the database.

Ok so I am suspecting it is picking up the server time. So then I then set in php.ini to have date.timezone = "America/Los_Angeles" but again the time is still not correct in the database...And yes I have also set the timezone in Wordpress correctly.

So how can this be done?

© Stack Overflow or respective owner

Related posts about server

Related posts about timezone