psy Posted January 3 Share Posted January 3 First time I've ever encountered this warning message and unsure how to resolve. Scenario: Customer is a long-time PW client in Australia who is moving to the UK. The web host created a new account hosted in Germany and copied all the AU files and DB to the new hosting account/location, Germany being their closest hosting centre to the UK. Time diff between Germany and UK is 1hr Time diff between Australia and Germany is 10hrs Site is working with new URL, etc The new PHP time zone needs to be "Europe/London" and $config->timezone is set to same Times are important as the client will be taking online appointment bookings. How do I match the DB time to the new UK time zone? Solution: In 'site/config.php' immediately after the database connection info: $config->dbInitCommand = "SET NAMES '{charset}', time_zone = 'Europe/London' "; Where {charset} can be utf8 or utf8mb4 depending on your setup Link to comment Share on other sites More sharing options...
bernhard Posted January 3 Share Posted January 3 This is how you can set the DB timezone: https://stackoverflow.com/questions/930900/how-do-i-set-the-time-zone-of-mysql If you don't have access to that talk to your hosting provider. 1 Link to comment Share on other sites More sharing options...
Marty Walker Posted April 23 Share Posted April 23 I just wanted to add something for anyone who searches and lands here. With the host I'm on, even if the PHP timezone is set to (in my case) 'Australia/Sydney' and the PW installer matches that, the dates are still out. The only way for me to install PW without modding the config each and every time is to set the PW installer to UTC. I don't know if this is the right or wrong way to go about it but it seems to work. 1 Link to comment Share on other sites More sharing options...
JamesFletcher Posted May 5 Share Posted May 5 Thanks! I’ll update MySQL timezone, appreciate the clear guidance! Link to comment Share on other sites More sharing options...
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