]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
bsdunzip: Fix ISO week year and Gregorian year confusion 2860/head
authorNagy Tibor <xnagytibor@protonmail.com>
Mon, 9 Feb 2026 05:39:22 +0000 (06:39 +0100)
committerNagy Tibor <xnagytibor@protonmail.com>
Mon, 9 Feb 2026 05:39:22 +0000 (06:39 +0100)
unzip/bsdunzip.c

index 14bd418f169c472d33d96355e39c67992f772c74..a76658671a8900c121999d72be529696bf6ad6bc 100644 (file)
@@ -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)