summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2008-07-05 02:05:55 +0000
committerkientzle <kientzle@FreeBSD.org>2008-07-05 02:05:55 +0000
commita02f4004699a0b976c75dd9a24480ebdb6d52ff3 (patch)
treefd420ed4a4e2b5db46f8fce61c5122dc9ce77d87 /usr.bin
parentd57478921c043a4602fea85e24953b48efdfe837 (diff)
downloadFreeBSD-src-a02f4004699a0b976c75dd9a24480ebdb6d52ff3.zip
FreeBSD-src-a02f4004699a0b976c75dd9a24480ebdb6d52ff3.tar.gz
Use %H:%M for strftime() time formatting instead of the non-portable %R.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tar/read.c2
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));
OpenPOWER on IntegriCloud