Problem with server time settings
Posted: Mon Apr 06, 2020 9:29 pm
Could someone give me some advice about server times, please? When I post a new news article, it doesn't appear in the sidebar until after a delay. I'm in England, where we recently changed to daylight saving time. That seems to be the problem, but I don't know how to fix it.
I tried the diagnostics in Rolf and Robert's article:https://cmscanbesimple.org/blog/server-time-difference. The diagnostic UDT named "test_server_timezones" gives:
My config.php has:
Adding:
(or Europe/Amsterdam) has no effect. Do I need to take this up with my hosting company instead?
(The other three tests mentioned in that article are all fine. The UNIX timestamp is correct, and the UDTs "test_db_timedifference" and "test_file_timedifference" both show zero offset.)
(I tried to ask this question in the obvious place, at the bottom of the original article, but I was defeated by Rolf's anti-spam system.)
I tried the diagnostics in Rolf and Robert's article:https://cmscanbesimple.org/blog/server-time-difference. The diagnostic UDT named "test_server_timezones" gives:
Code: Select all
PHP time is '2020-04-06 20:55:48'
MySQL time is '2020-04-06 19:55:48'
Code: Select all
$config['timezone'] = 'Europe/London';
Code: Select all
$config['set_db_timezone'] = 'Europe/London';
(The other three tests mentioned in that article are all fine. The UNIX timestamp is correct, and the UDTs "test_db_timedifference" and "test_file_timedifference" both show zero offset.)
(I tried to ask this question in the obvious place, at the bottom of the original article, but I was defeated by Rolf's anti-spam system.)