Module: libav Branch: master Commit: 1ae6cb7d6e4fee30754a46bc91f40ff75ac4412a
Author: Anton Schubert <[email protected]> Committer: Martin Storsjö <[email protected]> Date: Fri Jan 27 00:25:07 2017 +0100 dashenc: fix ISO8601 UTC parsing Appends Z to timestamp to force ISO8601 datetime parsing as UTC. Without Z, some browsers (Chrome) interpret the timestamp as localtime and others (Firefox) interpret it as UTC. Signed-off-by: Anton Schubert <[email protected]> Signed-off-by: Martin Storsjö <[email protected]> --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index ce01860..2b27950 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -429,7 +429,7 @@ static void format_date_now(char *buf, int size) struct tm *ptm, tmbuf; ptm = gmtime_r(&t, &tmbuf); if (ptm) { - if (!strftime(buf, size, "%Y-%m-%dT%H:%M:%S", ptm)) + if (!strftime(buf, size, "%Y-%m-%dT%H:%M:%SZ", ptm)) buf[0] = '\0'; } } _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
