From: Tim Kientzle Date: Wed, 18 Jun 2008 19:33:06 +0000 (-0400) Subject: Portability: Use %H:%M instead of the non-standard %R. X-Git-Tag: v2.6.0~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b367277b4c9097f6c218164a510b5a34d040932;p=thirdparty%2Flibarchive.git Portability: Use %H:%M instead of the non-standard %R. SVN-Revision: 129 --- diff --git a/tar/read.c b/tar/read.c index ec6b531b1..fbb82533a 100644 --- a/tar/read.c +++ b/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));