Have you verified this does adjustments on the ESP32 platform?
So far I've not been able to confirm this.
(I may not yet have looked deep enough, and I have not yet tried it on actual h/w)
I could build some test code and try it on real h/w but I prefer to see the actual code with my own eyes.
I looked around at various ESP32 documentation and glibc/timezone source code and it was not clear to me if automatic adjustment is assured to be the case with that TZ string on the ESP32.
The ESP32 documentation refers to the POSIX TZ page that I previously linked to.
From the POSIX TZ documentation, if the offset,start/time,end/time are omitted, the timezone rules will default to what is in /usr/share/zoneinfo/posixrules
I was able to find references to this in the glibc time code.
(On linux the posixrules file links to America/New_York tzfile which are the timezone rules in New_York which are the same as most of the USA)
What isn't clear is what this does in the ESP32 environment.
I've not been able to locate the glibc/time code that is used on the ESP32 to see if they are using the stock code or if they have modified it.
(The ESP8266 core has modifications in the some of time code)
There are some conditionals in the glibc time code as well as some aliases.
So depending on how they ported this to the ESP32, it may or may not have the same behavior as the POSIX code.
Does anybody have a link to the glibc time code that is being used on the ESP32?
But from a portability point of view, even it does "work" on the ESP32, it would only work for whatever default timezone rules were configured in the ESP32 code - which if the ESP32 code sticks to the spirit of the original glibc time code, would be New York. While those rules apply to most locations in the continental US, it isn't universal.
Also, using the offset parameters on the configTime() API call doesn't work on the ESP8266.
I would still stick with explicitly setting the TZ to with the proper timezone information and rules so it is obvious what the rules are, works for any timezone in the world and works on any platform that supports the glibc time functions.
i.e. using and setting an explicit TZ string will work on both the ESP32 and ESP8266 whereas using offsets will not work on the ESP8266.
--- bill