Dealing with PHP server and MySQL server in different time zones

Posted by Kyle Noland on Stack Overflow See other posts from Stack Overflow or by Kyle Noland
Published on 2008-08-20T17:55:35Z Indexed on 2010/03/31 3:13 UTC
Read the original article Hit count: 367

Filed under:
|
|
|
|

For those of us who use standard shared hosting packages, such as GoDaddy or Network Solutions, how do you handle datetime conversions when your hosting server (PHP) and MySQL server are in different time zones?

Also, does anybody have some best practice advice for determining what time zone a visitor to your site is in and manipulating a datetime variable appropriately?

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql