From: Adam Sutton Date: Sun, 23 Sep 2012 19:34:07 +0000 (+0100) Subject: Convert dvr time output to ISO format for fixed length. X-Git-Tag: 3.3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76d981efaaa62bdde6b3705fcf927c3a7f86f6e3;p=thirdparty%2Ftvheadend.git Convert dvr time output to ISO format for fixed length. --- diff --git a/src/dvr/dvr_db.c b/src/dvr/dvr_db.c index 95d748ae6..1edb2bc9e 100644 --- a/src/dvr/dvr_db.c +++ b/src/dvr/dvr_db.c @@ -326,7 +326,8 @@ static dvr_entry_t *_dvr_entry_create ( t = de->de_start - de->de_start_extra * 60; localtime_r(&t, &tm); - strftime(tbuf, sizeof(tbuf), "%c", &tm); + if (strftime(tbuf, sizeof(tbuf), "%F %T", &tm) <= 0) + *tbuf = 0; if(dae != NULL) { de->de_autorec = dae;