From cdac2447f09c1c9d0fbec85b8a9d5caa997b64a6 Mon Sep 17 00:00:00 2001 From: Alexei Kireev Date: Fri, 24 Apr 2020 10:57:13 +0300 Subject: [PATCH] Fixed: DST name not found if offset contains minutes When parsing POSIX TZ definition string in Timezone::tzTime(), DST name of the time zone couldn't be found if TZ offset contained minutes (after ':'). --- src/ezTime.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ezTime.cpp b/src/ezTime.cpp index b55babd..f45dd5b 100644 --- a/src/ezTime.cpp +++ b/src/ezTime.cpp @@ -644,6 +644,7 @@ time_t Timezone::tzTime(time_t t, ezLocalOrUTC_t local_or_utc, String &tzname, b if (c && state == OFFSET_MIN) { if (!isDigit(c)) { state = DST_NAME; + dstname_begin = strpos; ignore_nums = false; } else { if (!offset_min) offset_min = atoi(_posix.c_str() + strpos);