3 different times on my Wordpress site

0

I have a wordpress website hosted at Hostgator (Brazil). The server shows the current correct time (in DST). In this example, the correct time is as below, ie 13h (America / São Paulo) . Entering via putty.exe :

[email protected] [~]# date
  

Sun Nov 11 11:55:01 -02 2018 correct time / daylight saving time   America / São Paulo

However, within a PHP script, I get the time in 2 hours early :

echo date("e /  d-m-Y G:i:s");
  

UTC / 11-11-2018 15:55:01

At the same time, within Wordpress (Admin -> Settings -> General), the "Timezone" field is set to UTC-3 where it shows:

  

Universal time (UTC) is 11/11/2018 15:55:01 . The local time is 11/11/2018 12:55:01 .

In short, the server shows 13h (correct in current time in São Paulo summer time), but PHP shows 15h and Wordpress shows 12h .

How to regularize this, that is, that the 3 cases have the same schedule?

    
asked by anonymous 11.11.2018 / 17:14

0 answers