• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Timezone and Daylight Saving Time

Timo002

Basic Pleskian
Hello,

In Plesk I've set up my timezone as (GMT +02:00) Europe/Amsterdam.

Currently the local time is 21:50, but it shows the system time as 22:50.
If I use this PHP code:
PHP:
<?php
echo date('H:i');
?>
This also shows me 22:50

Has this something to do with Daylight Saving Time? How can I fix this?
 
@Monty, the date.timezone was not set in the php.ini file and is didn't fall back to the date timezone I setup under Tools & Settings > System Time. I uncommented date.timezone from the php.ini file and set it to 'Europe/Amsterdam'. Now the timezone seems to be working fine. It seems I need to do this for each PHP version on running on Plesk, it doesn't pick a default one.
 
Back
Top