ESP8266 Daylight Savings Time (DST) not working

I am using the time.h library to get NTP time and that works well. However, it doesn't seem to adjust for DST.

Related statements:

#include <time.h>
configTime(-5 * 3600, 1*3600, "pool.ntp.org", "time.nist.gov");
time_t now = time(nullptr);
Serial.println(ntptime);

I have googled the problem and tried a lot of suggestions, but no luck. Some of the Google searches seem to say that DST doesn't work. Although the discussion was over my head so I might not have understood it correctly.

I would appreciate any help to get this working.

Alternatively is there is a simple way to determine when DST is active so I can adjust the time myself?

Thanks,
Frank

NTP time is UTC as is now() from time.h and UTC doesn't account for daylight savings.

You need to offset UTC to local time for both standard time and daylight time.

Consider using Jack Christensen's Arduino Timezone Library to set up your offsets and daylight savings rules.

Perehama:
NTP time is UTC as is now() from time.h and UTC doesn't account for daylight savings.

You need to offset UTC to local time for both standard time and daylight time.

Consider using Jack Christensen's Arduino Timezone Library to set up your offsets and daylight savings rules.

Thanks, I looked at the Timezone library but I found some home grown code on the net that I was able to use.

I know this is an old thread, but for those that are still struggling with this, I posted an example to a git hub issue.
The example shows how to use NTP with timezone and DST support by avoiding the broken timezone offset support and using the built in TZ string support.

--- bill