X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/394c1797728f21b699a9cd8bfc16ea70f384c1e0..3a85a3ad2d55f4d8d998b0e65f02e86937438461:/sbr/datetime.c?ds=inline diff --git a/sbr/datetime.c b/sbr/datetime.c index a5f6c77b..68038cfc 100644 --- a/sbr/datetime.c +++ b/sbr/datetime.c @@ -64,7 +64,7 @@ parse_datetime (const char *datetime, const char *zone, int dst, int form_1 = 0; int items_matched; - memset(tws, 0, sizeof *tws); + ZERO(tws); items_matched = sscanf (datetime, "%4d%2d%2dT%2d%2d%2d%c", &tws->tw_year, &tws->tw_mon, &tws->tw_mday, @@ -75,7 +75,7 @@ parse_datetime (const char *datetime, const char *zone, int dst, if (items_matched == 7) { /* The 'Z' must be capital according to RFC 5545 Sec. 3.3.5. */ if (utc_indicator != 'Z') { - inform("%s has invalid timezone indicator of 0x%x", + inform("%s has invalid timezone-indicator byte: %#x", datetime, utc_indicator); return NOTOK; }