Wrong summer time

3

I'm having a problem with daylight savings time ... actually cell phones, street clocks, my pc also moved clockwise ...

  

Daylight saving time generally starts in October. But, to coincide with the election date, President Michel Temer signed a decree by the end of 2017 postponing the period for November.

I've noticed that some sites have DST. From what I've been reading, it's the Apache who has the role of managing when daylight saving time starts and ends.

The question is - our schedule has been postponed and no one has spoken to apache (rs). What would be the way to update apache for the correct dates, without having to do gambiarras in PHP of type (hora - 1) ?

    
asked by anonymous 22.10.2018 / 04:58

2 answers

4

If the problem is in OS

On Linux you need to do an update, which will probably bring the correct TZDATA (Apache takes from the OS). If you manually fix it, you have to see where your distro stores the DST data (not to be confused with time zones).

If it's windows, you have a specific KB for this year's daylight saving time if your OS does not update automatically (which seems to be the case). - In the case of Windows, follow the link to 2018: link

If the problem is in PHP

PHP has the "timezonedb", which plays the role of "table" of summer times per year and geographic region. In this case, please upgrade for this package: link


Eventually it may be that you need to restart some service (the page server, or the PHP service if this was installed as some kind of CGI)

    
23.10.2018 / 11:16
0

Windows:

  • Publish the php_timezonedb.dll DLL in the PHP extensions directory. Ex: "c: \ php \ ext"

Link to DLL download: link

  • Add the "extension = php_timezonedb.dll" parameter in the php.ini file

  • Restart the APACHE service

Linux:

  • Download the timezonedb.tgz file from link

  • use the command #pecl upgrade timezonedb.tgz

NOTE: It may be that dependency failures that needed to be resolved before the command runs successfully.

  • add the line "extension = timezonedb.so" in the php.ini file

  • Restart the httpd service

24.10.2018 / 17:51