From: Nagy Tibor Date: Mon, 9 Feb 2026 05:39:22 +0000 (+0100) Subject: bsdunzip: Fix ISO week year and Gregorian year confusion X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2860%2Fhead;p=thirdparty%2Flibarchive.git bsdunzip: Fix ISO week year and Gregorian year confusion --- diff --git a/unzip/bsdunzip.c b/unzip/bsdunzip.c index 14bd418f1..a76658671 100644 --- a/unzip/bsdunzip.c +++ b/unzip/bsdunzip.c @@ -884,9 +884,9 @@ list(struct archive *a, struct archive_entry *e) mtime = archive_entry_mtime(e); tm = localtime(&mtime); if (*y_str) - strftime(buf, sizeof(buf), "%m-%d-%G %R", tm); + strftime(buf, sizeof(buf), "%m-%d-%Y %R", tm); else - strftime(buf, sizeof(buf), "%m-%d-%g %R", tm); + strftime(buf, sizeof(buf), "%m-%d-%y %R", tm); pathname = archive_entry_pathname(e); if (!pathname)