diff --git a/NEWS b/NEWS index 35fba5b78..dbd9cbe1a 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,6 @@ ver 0.22.7 (not yet released) +* protocol + - don't use glibc extension to parse time stamps * decoder - ffmpeg: fix build problem with FFmpeg 3.4 * storage diff --git a/src/time/ISO8601.cxx b/src/time/ISO8601.cxx index 067e4c4ee..edda7034e 100644 --- a/src/time/ISO8601.cxx +++ b/src/time/ISO8601.cxx @@ -185,7 +185,7 @@ ParseISO8601(const char *s) struct tm tm{}; /* 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);