]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Portability: Use %H:%M instead of the non-standard %R.
authorTim Kientzle <kientzle@gmail.com>
Wed, 18 Jun 2008 19:33:06 +0000 (15:33 -0400)
committerTim Kientzle <kientzle@gmail.com>
Wed, 18 Jun 2008 19:33:06 +0000 (15:33 -0400)
SVN-Revision: 129

tar/read.c

index ec6b531b1d905d7366ad51dc367a8afb4dbd9617..fbb82533a72e326f918c1d5a2d74215886131364 100644 (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));