]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Convert dvr time output to ISO format for fixed length.
authorAdam Sutton <dev@adamsutton.me.uk>
Sun, 23 Sep 2012 19:34:07 +0000 (20:34 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Sun, 23 Sep 2012 19:35:56 +0000 (20:35 +0100)
src/dvr/dvr_db.c

index 95d748ae6ad821a996b9fea6b83bf573cee51dcc..1edb2bc9e2f21fc1e8daab9609e60dd89e9b703f 100644 (file)
@@ -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;