Skip to content

Commit e12062b

Browse files
cosmo0920edsiper
authored andcommitted
strptime: Omit timezone processing on %s format
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 39ab798 commit e12062b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/flb_strptime.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -520,12 +520,7 @@ again: switch (c = *fmt++) {
520520
flb_tm_gmtoff(tm) = 0;
521521
tm->tm.tm_isdst = 0;
522522
flb_tm_zone(tm) = "UTC";
523-
for(i=0; flb_known_timezones[i].abbr != NULL; ++i) { /* Prefer "UTC" from list if available */
524-
if (strcmp(flb_known_timezones[i].abbr, "UTC") == 0) {
525-
flb_tm_zone(tm) = flb_known_timezones[i].abbr;
526-
break;
527-
}
528-
}
523+
/* %s format does not handle timezone */
529524
fields = 0xffff; /* everything */
530525
}
531526
break;

0 commit comments

Comments
 (0)