I have a wordpress website hosted at Hostgator (Brazil).
The server shows the current correct time (in daylight saving time). In this example, the correct time is as below, ie 13h (America / São Paulo). Logging in via
firstname.lastname@example.org [~] # date
Sun Nov 11 13:55:01 -02 2018 << - correct time / daylight saving time America / São Paulo
However, inside a PHP script, I get the time in 2 hours:
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 "Time Zone" field is set to
UTC-3 where it shows:
Universal time (UTC) is
11/11/2018 15:55:01. Local time is 11/11/2018 12:55:01.
In short, the server shows
13h (correct in current time in São Paulo DST), but PHP shows
15h and Wordpress shows
How to regularize this, that is, that the 3 cases have the same time?