This is not directly possible with Python's default zipfile
module. See e.g. this question: overwriting file in ziparchive
If you look in ZipFile
class code, you'll see that in close
method it will just append data to the end of original zip file.
To modify file dates, you will have to use some site package like myZip
or implement this functionality yourself.
Alternative way is to fully unpack your zip file and repack it again with updated date&time. See answers to above-mentioned question for details.