Correct setting for time in germany #63
Replies: 1 comment
-
Yes, that looks right. I would rename static BasicZoneProcessor berlinProcessor;
...
void doSomethingWithTime() {
auto berlinTz = TimeZone::forZoneInfo(
&zonedb::kZoneEurope_Berlin, &berlinProcessor);
auto berlinTime = ZonedDateTime::forEpochSeconds(now, berlinTz);
[...]
} (Edit: Fix typo above) The full list of all timezones supported by The full list of all timezones supported by Yes, your ZonedDataTime will calculate summer/winter time automatically. Good luck with your project! |
Beta Was this translation helpful? Give feedback.
-
Hi,
first of all: great library.
I want to get the correcttime displayed for germany.
Is this the correct setting:
Or is "pacificProcessor" and / or "ZoneEurope_Berlin" wrong?
Where can i find an overview of the correct timezone-wordings?
And last questions:
Once the time is correctly set and the esp will not be switched off will AceTime automatically recoginze change to summer / wintertime?
Best wishes
Daniel
Beta Was this translation helpful? Give feedback.
All reactions