From: Ralph Corderoy Date: Sat, 9 Sep 2017 11:05:22 +0000 (+0100) Subject: datetime.c: Fix parse-failure's error-message's daylight indication. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/97ed1473582676df043c03adc11997341ce391dd?ds=inline datetime.c: Fix parse-failure's error-message's daylight indication. `in_standard' was being used to decide between `standard' and `daylight' in the error message, but it would always be false by that point. `in_daylight' is what's passed to the parsing function so use that to determine the string instead. Bug present since the initial implementation. --- diff --git a/sbr/datetime.c b/sbr/datetime.c index 09c8332b..bcf1a9a6 100644 --- a/sbr/datetime.c +++ b/sbr/datetime.c @@ -181,7 +181,7 @@ load_timezones (const contentline *clines) { } else { inform("failed to parse start time %s for %s", params->dtstart, - in_standard ? "standard" : "daylight"); + in_daylight ? "daylight" : "standard"); return NULL; } params = NULL;