From 6b3043af69eb5d102ed358866a41204cc62bba4c Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sat, 1 Aug 2015 09:32:26 +0000 Subject: archive: use correct epoch time. epoch is 1970-01-01 00:00:00 UTC, not 1970-01-01 01:00:00 UTC. This mistake was introduced in commit ef5a32c to fix the test suite. I guess that it was a hack that workaround'ed an actual bug for a specific timezone only. If that bug reappears, we'll have to fix that by making this module timezone-aware, not by setting a wrong epoch value. --- libmat/archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmat/archive.py') diff --git a/libmat/archive.py b/libmat/archive.py index 4c62dc8..c70759a 100644 --- a/libmat/archive.py +++ b/libmat/archive.py @@ -16,7 +16,7 @@ import parser # Zip files do not support dates older than 01/01/1980 ZIP_EPOCH = (1980, 1, 1, 0, 0, 0) ZIP_EPOCH_SECONDS = (datetime.datetime(1980, 1, 1, 0, 0, 0) - - datetime.datetime(1970, 1, 1, 1, 0, 0)).total_seconds() + - datetime.datetime(1970, 1, 1, 0, 0, 0)).total_seconds() class GenericArchiveStripper(parser.GenericParser): -- cgit v1.3