Skip to content

Commit 0bf33de

Browse files
cosmo0920edsiper
authored andcommitted
strptime: Fix style for default UTC/GMT values
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent e12062b commit 0bf33de

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
@@ -519,7 +519,7 @@ again: switch (c = *fmt++) {
519519
return (NULL);
520520
flb_tm_gmtoff(tm) = 0;
521521
tm->tm.tm_isdst = 0;
522-
flb_tm_zone(tm) = "UTC";
522+
flb_tm_zone(tm) = utc;
523523
/* %s format does not handle timezone */
524524
fields = 0xffff; /* everything */
525525
}
@@ -682,7 +682,7 @@ again: switch (c = *fmt++) {
682682
return NULL;
683683
tm->tm.tm_isdst = 0;
684684
flb_tm_gmtoff(tm) = 0;
685-
flb_tm_zone(tm) = "GMT"; /* Original had global gmt array */
685+
flb_tm_zone(tm) = gmt; /* Original had global gmt array */
686686
continue;
687687
case 'U':
688688
if (*bp++ != 'T')
@@ -692,7 +692,7 @@ again: switch (c = *fmt++) {
692692
bp++; /* Allow "UTC" */
693693
tm->tm.tm_isdst = 0;
694694
flb_tm_gmtoff(tm) = 0;
695-
flb_tm_zone(tm) = "UTC"; /* Original had global utc array */
695+
flb_tm_zone(tm) = utc; /* Original had global utc array */
696696
continue;
697697
case 'Z':
698698
tm->tm.tm_isdst = 0;

0 commit comments

Comments
 (0)