ropg / ezTime

ezTime — pronounced "Easy Time" — is a very easy to use Arduino time and date library that provides NTP network time lookups, extensive timezone support, formatted time and date strings, user events, millisecond precision and more.
MIT License
343 stars 93 forks source link

Dublin timezone incorrect time #159

Open berlingozzo opened 2 years ago

berlingozzo commented 2 years ago

Hi, ESP32 with 2.0.5 core, programmed with Arduino IDE 1.8.16 on a Mac.

If I use Europe/Dublin in setLocation, I get 1 hour ahead. If I use Europe/London (same time, though technically speaking not same timezone), I get the correct time.

This was last night at 21:40:15 Dublin time: Dublin time: Monday, 31-Oct-2022 22:40:15 GMT

MCVE:

waitForSync();

Timezone Ireland;

while (!Ireland.setLocation("Europe/Dublin")) {
   Serial.print(".");
   delay(500);
}

Serial.println("\nDublin time: " + Ireland.dateTime());
nagius commented 1 year ago

I can confirm the issue is still there. It was working fin during summer time (IST) but now the timezone is GMT (which is good) but the offset is still +0100 :

ezTime debug level set to INFO
Waiting for time sync
Querying pool.ntp.org ... success (round trip 83 ms)
Received time: Tuesday, 31-Oct-23 19:32:42.161 UTC
Time is in sync
UTC RFC822:           Tue, 31 Oct 23 19:32:42 -0000
UTC TZ:    UTC
Europe/Dublin RFC822: Tue, 31 Oct 23 20:32:42 +0100
Dublin TZ: GMT