We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e82fe24 commit ecbf8c5Copy full SHA for ecbf8c5
plugins/in_winevtlog/pack.c
@@ -189,17 +189,17 @@ static int pack_systemtime(struct winevtlog_config *ctx, SYSTEMTIME *st)
189
CHAR buf[64];
190
size_t len = 0;
191
_locale_t locale;
192
- TIME_ZONE_INFORMATION tzi;
+ DYNAMIC_TIME_ZONE_INFORMATION dtzi;
193
SYSTEMTIME st_local;
194
195
- GetTimeZoneInformation(&tzi);
+ GetDynamicTimeZoneInformation(&dtzi);
196
197
locale = _get_current_locale();
198
if (locale == NULL) {
199
return -1;
200
}
201
if (st != NULL) {
202
- SystemTimeToTzSpecificLocalTime(&tzi, st, &st_local);
+ SystemTimeToTzSpecificLocalTimeEx(&dtzi, st, &st_local);
203
204
struct tm tm = {st_local.wSecond,
205
st_local.wMinute,
0 commit comments