Merge branch 'v0.22.x'

This commit is contained in:
Max Kellermann
2021-03-04 18:56:29 +01:00
13 changed files with 1201 additions and 452 deletions

View File

@@ -202,7 +202,7 @@ ParseISO8601(const char *s)
}
/* parse the date */
const char *end = strptime(s, "%F", &tm);
const char *end = strptime(s, "%Y-%m-%d", &tm);
if (end == nullptr) {
/* try without field separators */
end = strptime(s, "%Y%m%d", &tm);