Commit 8d80280a authored by Érico Rolim's avatar Érico Rolim Committed by Max Kellermann

time/ISO8601: don't use glibc extension in strptime.

Per the manual for strptime, %F is equivalent %Y-%m-%d, so use that directly.
parent c95e3dc0
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
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment