diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-07-05 02:05:55 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-07-05 02:05:55 +0000 |
commit | a02f4004699a0b976c75dd9a24480ebdb6d52ff3 (patch) | |
tree | fd420ed4a4e2b5db46f8fce61c5122dc9ce77d87 | |
parent | d57478921c043a4602fea85e24953b48efdfe837 (diff) | |
download | FreeBSD-src-a02f4004699a0b976c75dd9a24480ebdb6d52ff3.zip FreeBSD-src-a02f4004699a0b976c75dd9a24480ebdb6d52ff3.tar.gz |
Use %H:%M for strftime() time formatting instead of the non-portable %R.
-rw-r--r-- | usr.bin/tar/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tar/read.c b/usr.bin/tar/read.c index 8706906..c661060 100644 --- a/usr.bin/tar/read.c +++ b/usr.bin/tar/read.c @@ -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)); |