Skip to content

Commit 21d4bc2

Browse files
committed
strptime: Fix style for default UTC/GMT values
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 251d889 commit 21d4bc2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/flb_strptime.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ again: switch (c = *fmt++) {
556556
return (NULL);
557557
flb_tm_gmtoff(tm) = 0;
558558
tm->tm.tm_isdst = 0;
559-
flb_tm_zone(tm) = "UTC";
559+
flb_tm_zone(tm) = utc;
560560
/* %s format does not handle timezone */
561561
fields = 0xffff; /* everything */
562562
}
@@ -719,7 +719,7 @@ again: switch (c = *fmt++) {
719719
return NULL;
720720
tm->tm.tm_isdst = 0;
721721
flb_tm_gmtoff(tm) = 0;
722-
flb_tm_zone(tm) = "GMT"; /* Original had global gmt array */
722+
flb_tm_zone(tm) = gmt; /* Original had global gmt array */
723723
continue;
724724
case 'U':
725725
if (*bp++ != 'T')
@@ -729,7 +729,7 @@ again: switch (c = *fmt++) {
729729
bp++; /* Allow "UTC" */
730730
tm->tm.tm_isdst = 0;
731731
flb_tm_gmtoff(tm) = 0;
732-
flb_tm_zone(tm) = "UTC"; /* Original had global utc array */
732+
flb_tm_zone(tm) = utc; /* Original had global utc array */
733733
continue;
734734
case 'Z':
735735
tm->tm.tm_isdst = 0;

0 commit comments

Comments
 (0)