Author Topic: Wrong Time on America/Sao_Paulo  (Read 491 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Wrong Time on America/Sao_Paulo
« on: December 02, 2020, 06:47:19 PM »
Good afternoon, after Brazil removed the daylight saving time and as I am new to CWP I realized that the time shown by PHP is being one hour longer than the correct time. The server time is correct.

Server time:
[root@tzrymg America]# date
Wed Dec  2 15:45:08 -03 2020

Time shown by PHP (code):
<?php
    date_default_timezone_set('America/Sao_Paulo');

    echo date('Y-m-d H:i:s');

Result:
America/Sao_Paulo
2020-12-02 16:45:12


Any ideas on how I can solve this? Thanks in advance.

Offline
*
Re: Wrong Time on America/Sao_Paulo
« Reply #1 on: December 03, 2020, 07:37:23 PM »
for each php version you use you can edit php.ini
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.