mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
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 <ischluff@mailbox.org> Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
2bbb5abd87
commit
1ae6cb7d6e
@ -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';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user