Jump to content

Warning, the database time differs from PHP time


AndZyk
 Share

Recommended Posts

Hello,

the hoster of our client migrated their servers and now I get this warning in the back-end when logging in:

Quote

Warning, the database time differs from PHP time by 9 Stunden.

2025-09-02 02:43:21 - database time
2025-09-02 11:43:21 - PHP time

Please edit your /site/config.php file and update your $config->timezone to match that of your database. See PHP timezones list +1

I know this topic was already answered in two other threads.

I tried out this solution: 

At first this seemed to be a simple solution, but then I noticed that pages in the page tree were blank. So this seems to be no ideal solution.

I tried to find out the name of the new timezone, the current name ist "Berlin/Europe", but how do you find out the exact name? It seems to be some Pacific timezone. I tried out different websites to find out the timezone name, but with no luck yet. 😅

In this thread are some solutions with SQL commands and hooks. But I am not experienced with SQL and don't want to touch the database:

Can somebody please recommend me a simple solution to get rid of this warning?

Regards, Andreas

Edited by AndZyk
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...