[New-bugs-announce] [issue38288] shutil.make_archive() should allow setting zipfile.ZipFile() 'strict_timestamps'

Alori report at bugs.python.org
Thu Sep 26 12:43:50 EDT 2019

New submission from Alori <valorien at gmail.com>:

https://bugs.python.org/issue34097 addressed a zipfile.ZipFile() issue where zip files with timestamps prior to the year 1980 could not be created. The fix adds the strict_timestamps=True|False keyword argument to the ZipFile class.

shutil.make_archive() is a high-level utility that uses ZipFile() to simplify zip file creation. Unfortunately, it doesn't support the new 'strict_timestamps' keyword which means users encountering the 'ValueError: ZIP does not support timestamps before 1980' exception must revert to using zipfile.ZipFile() instead.

I believe adding the 'strict_timestamps' keyword to shutil.make_archive() and propagating it to zipfileZipFile()

components: Library (Lib)
messages: 353329
nosy: valorien
priority: normal
severity: normal
status: open
title: shutil.make_archive() should allow setting zipfile.ZipFile() 'strict_timestamps'
type: enhancement
versions: Python 3.8

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list