LAUBi Posted January 8, 2010 Posted January 8, 2010 Heyho outa there, i got a disgusting problem, the server time is [bleep] up... all my mysql entries refer to the wrong time and so my homepage entries are displayed with a wrong time, i always have to recalculate the time can anyone help me to change the server time? Thanks
openmp3 Posted January 11, 2010 Posted January 11, 2010 Don't you think the server's time is GMT? Maybe you can try php's date-default-timezone-set(): http://www.php.net/manual/en/function.date...imezone-set.php O and maybe try asking more nicely next time, maybe people are more willing to help you.
LAUBi Posted January 11, 2010 Author Posted January 11, 2010 hmk sorry, no i don't think, without modifying anything about time the time is about 9 hours behind that can't be GMT ^^ The idea with the time including into php is not bad, but the dates are incorrect in mysql as well... Maybe anyone else can help?
Byron Posted January 11, 2010 Posted January 11, 2010 LAUBi I've edited your post so that it doesn't contain profanity. If you use anymore profanity I will ban you for 10 days. Read the Guidelines. http://www.helionet.org/index/index.php?showtopic=4
LAUBi Posted January 11, 2010 Author Posted January 11, 2010 lol, didn't even mention that... im sorry ^^
Byron Posted January 11, 2010 Posted January 11, 2010 You can try this directive in your root htaccess file. I can't say for sure that it will work for mysql. SetEnv TZ US/Eastern Give me a minute and I'll post back other time zones. EDIT: Time Zones: http://byrondallas.heliohost.org/php/timezone-all.php
LAUBi Posted January 11, 2010 Author Posted January 11, 2010 that didn't solve it though the dates are saved wrong in the table in mysql and the php script displays only THOSE dates.. :/ edit: mysql is actually using the system time, isn't it?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now