diff mbox

[FFmpeg-devel,2/8] libavformat/dashenc: add Z to localtime to force correct UTC parsing

Message ID 20170121143909.29028-3-pegro@friiks.de
State Accepted
Commit 1ae6cb7d6e4fee30754a46bc91f40ff75ac4412a
Headers show

Commit Message

Peter Gro├če Jan. 21, 2017, 2:39 p.m. UTC
From: Anton Schubert <ischluff@mailbox.org>

Signed-off-by: Anton Schubert <ischluff@mailbox.org>
---
 libavformat/dashenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index d0a2ab5..3286c36 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -447,7 +447,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';
     }
 }