Author Topic: I'm having a problem with UTC php time  (Read 2835 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
I'm having a problem with UTC php time
« on: November 12, 2021, 01:41:02 PM »
I have a problem with my servers that we had a daylight saving time in the southern region of Brazil, this makes the Timezone "America/São_Paulo" have UTC-02:00 and we no longer have that daylight saving time. The correct is
let it be UTC-03:00.
What can we do to resolve it? Are there any packages to update from php so that the timezone "America/São_Paulo" returns to UTC-03:00?[img][img][img][/

Offline
***
Re: I'm having a problem with UTC php time
« Reply #1 on: November 13, 2021, 08:36:47 PM »
Seems you did not update or not installed the tzdata.
Check it:

Code: [Select]
# rpm -q tzdata tzdata-java
tzdata-2021e-1.el7.noarch
tzdata-java-2021e-1.el7.noarch

Mine is correct, automatically, for 'America/Sao_Paulo', with theses packages.

Regards,
Netino

Offline
*
Re: I'm having a problem with UTC php time
« Reply #2 on: November 16, 2021, 04:45:22 PM »
My server has updated tzdate, but even so in cwp on the panel in time_date it shows the time still with one more hour.

srv67 ~]# rpm -q tzdata tzdata-java
tzdata-2021e-1.el7.noarch
tzdata-java-2021e-1.el7.noarch

When logging into the panel and Change Date and Time> Date and time of this server: Tue 16 Nov 13:40:09 -03 2021 the time is correct.
More in the Time field  it's an hour too long. I've already changed the php.ini field, even changing the panel always ta with an extra hour.