Convert dvr time output to ISO format for fixed length.

This commit is contained in:
Adam Sutton 2012-09-23 20:34:07 +01:00
parent 75bda60058
commit 76d981efaa

View 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;