Index: Lib/zipfile.py =================================================================== --- Lib/zipfile.py (revision 54769) +++ Lib/zipfile.py (working copy) @@ -445,7 +445,9 @@ """Print a table of contents for the zip file.""" print "%-46s %19s %12s" % ("File Name", "Modified ", "Size") for zinfo in self.filelist: - date = "%d-%02d-%02d %02d:%02d:%02d" % zinfo.date_time + dt = zinfo.date_time + dinfo = (dt[0], dt[1], dt[2], dt[3], dt[4], dt[5]) + date = "%d-%02d-%02d %02d:%02d:%02d" % dinfo print "%-46s %s %12d" % (zinfo.filename, date, zinfo.file_size) def testzip(self): @@ -605,8 +607,9 @@ 'bytes'. 'zinfo_or_arcname' is either a ZipInfo instance or the name of the file in the archive.""" if not isinstance(zinfo_or_arcname, ZipInfo): - zinfo = ZipInfo(filename=zinfo_or_arcname, - date_time=time.localtime(time.time())) + loctime = time.localtime(time.time()) + dt = loctime[0:6] + zinfo = ZipInfo(filename=zinfo_or_arcname, date_time=dt) zinfo.compress_type = self.compression else: zinfo = zinfo_or_arcname