diff --git a/src/ezTime.cpp b/src/ezTime.cpp index 2a9f9b3..807123e 100644 --- a/src/ezTime.cpp +++ b/src/ezTime.cpp @@ -749,9 +749,7 @@ time_t Timezone::tzTime(time_t t, ezLocalOrUTC_t local_or_utc, String &tzname, b if (tzname == "UTC" && std_offset) tzname = "???"; is_dst = false; offset = std_offset; - return t - std_offset * 60; - } - + } else { int16_t dst_offset = std_offset - dst_shift_hr * 60 - dst_shift_min; // to find the year tmElements_t tm; @@ -778,6 +776,7 @@ time_t Timezone::tzTime(time_t t, ezLocalOrUTC_t local_or_utc, String &tzname, b } else { offset = std_offset; } + } if (local_or_utc == LOCAL_TIME) { return t + offset * 60LL;