complex05 Posted April 3, 2006 Share Posted April 3, 2006 Is there an easy way to adjust the time for MySQL on a shared server? I could manually write into my scripts to use date(mktime()) but that would require too much work. When I enter a row, I use the now() function to timestamp the row... but since we've gone live on our shared server, we noticed that the server time is 3 hours behind ours.Is there any easy solution?? Please give me good news :) Quote Link to comment Share on other sites More sharing options...
complex05 Posted April 3, 2006 Author Share Posted April 3, 2006 bump. Quote Link to comment Share on other sites More sharing options...
toplay Posted April 3, 2006 Share Posted April 3, 2006 You always write dates and times with whatever the server date and time is. Then when you go to display it, you subtract or add hours as needed.That's why this forum has a feature where it asks you what time zone you're in. Quote Link to comment Share on other sites More sharing options...
complex05 Posted April 3, 2006 Author Share Posted April 3, 2006 [!--quoteo(post=361325:date=Apr 3 2006, 03:53 PM:name=toplay)--][div class=\'quotetop\']QUOTE(toplay @ Apr 3 2006, 03:53 PM) [snapback]361325[/snapback][/div][div class=\'quotemain\'][!--quotec--]You always write dates and times with whatever the server date and time is. Then when you go to display it, you subtract or add hours as needed.That's why this forum has a feature where it asks you what time zone you're in.[/quote]Is there a way to change my timezone with .htaccess or something? I know I can't change the server's time... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.