This is an automated email from the ASF dual-hosted git repository. aboda pushed a commit to branch MINIFICPP-1348-RC1 in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
commit adf4e80f66ccaa053291ef9eee93fc184936bf32 Author: Arpad Boda <[email protected]> AuthorDate: Thu Sep 10 20:14:48 2020 +0200 MINIFICPP-1366 - CWEL fails to receive timezone information in case the current timezone has no DST dates Signed-off-by: Arpad Boda <[email protected]> Approved by hunyadi-dev and lordgamez on GH This closes #904 --- extensions/windows-event-log/ConsumeWindowsEventLog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/windows-event-log/ConsumeWindowsEventLog.cpp b/extensions/windows-event-log/ConsumeWindowsEventLog.cpp index 1192fa0..b8288cc 100644 --- a/extensions/windows-event-log/ConsumeWindowsEventLog.cpp +++ b/extensions/windows-event-log/ConsumeWindowsEventLog.cpp @@ -619,9 +619,13 @@ void ConsumeWindowsEventLog::refreshTimeZoneData() { long tzbias = 0; bool dst = false; switch (ret) { - case TIME_ZONE_ID_UNKNOWN: + case TIME_ZONE_ID_INVALID: logger_->log_error("Failed to get timezone information!"); return; // Don't update members in case we cannot get data + case TIME_ZONE_ID_UNKNOWN: + tzstr = tzinfo.StandardName; + tzbias = tzinfo.Bias; + break; case TIME_ZONE_ID_DAYLIGHT: tzstr = tzinfo.DaylightName; dst = true;
