mexport: default timestamp to unix second 0, not -1

This is better recognizable as "no data".
pull/209/head
Leah Neukirchen 3 years ago
parent 41c681362d
commit ce900601cb

@ -33,7 +33,7 @@ export(char *file)
}
char from[1024] = "nobody";
time_t date = -1;
time_t date = 0;
if (fseek(infile, 0L, SEEK_SET) && errno == ESPIPE) {
date = time(0);

Loading…
Cancel
Save