You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ab...@apache.org on 2020/09/14 10:42:41 UTC
[nifi-minifi-cpp] 06/07: MINIFICPP-1366 - CWEL fails to receive
timezone information in case the current timezone has no DST dates
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 <ab...@apache.org>
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 <ab...@apache.org>
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;