Use %H:%M for strftime() time formatting instead of the non-portable %R.

This commit is contained in:
Tim Kientzle 2008-07-05 02:05:55 +00:00
parent 1ad4959f57
commit fe8c1d9768

View File

@ -388,7 +388,7 @@ list_item_verbose(struct bsdtar *bsdtar, FILE *out, struct archive_entry *entry)
if (abs(tim - now) > (365/2)*86400)
fmt = bsdtar->day_first ? "%e %b %Y" : "%b %e %Y";
else
fmt = bsdtar->day_first ? "%e %b %R" : "%b %e %R";
fmt = bsdtar->day_first ? "%e %b %H:%M" : "%b %e %H:%M";
strftime(tmp, sizeof(tmp), fmt, localtime(&tim));
fprintf(out, " %s ", tmp);
safe_fprintf(out, "%s", archive_entry_pathname(entry));