Our country stopped daylight saving. Now the time is 20:16 But on PHP the time is 21:16. Is there any way to disable daylight saving? My code is:
echo date('Y-m-d H:i:s');
The 2016 change for Azerbaijan is correctly reflected in the time zone database for the Asia/Baku
time zone as of release 2016c.
PHP gets its time zone information from the timezonedb PECL package. The 2016c tz data, inclusive of the Azerbaijan change, is in timezonedb version 2016.3.
An embedded copy of this is included with each release of PHP, but occasionally there is a need to install it manually, because the releases are not necessarily aligned. In this case, the latest version of PHP was released on March 3rd, and the version of timezonedb you need was released on March 24th.
There's a good article here describing how exactly to install the timezonedb PECL package. After you install the latest version, you should see your code display the correct time.
Also, recognize that the Azerbaijan government only announced the change on March 17th, leaving very little time for implementation changes. Whenever governments provide short notice, situations like yours are bound to arise. If at all possible, please give feedback to your government to provide more lead time if any other changes are to occur in the future.