scan: show invalid dates

pull/1/merge
Christian Neukirchen 8 years ago
parent 4805ef9cce
commit d299649b0c

@ -72,9 +72,11 @@ oneline(char *file)
struct tm *tm;
tm = localtime(&t);
strftime(date, sizeof date, "%Y-%m-%d", tm);
} else {
strcpy(date, "(invalid)");
}
} else {
strcpy(date, "(invalid)");
strcpy(date, "(unknown)");
// mtime perhaps?
}

Loading…
Cancel
Save