From 873d9a628e9412a79bdc64cd962470749de3425b Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Wed, 4 Aug 2021 02:14:44 -0400 Subject: New upstream version 1.18.2. --- gallery_dl/extractor/common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gallery_dl/extractor/common.py') diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py index 048e0a3..2533ae5 100644 --- a/gallery_dl/extractor/common.py +++ b/gallery_dl/extractor/common.py @@ -174,8 +174,7 @@ class Extractor(): elif until: if isinstance(until, datetime.datetime): # convert to UTC timestamp - epoch = datetime.datetime(1970, 1, 1) - until = (until - epoch) / datetime.timedelta(0, 1) + until = (until - util.EPOCH) / util.SECOND else: until = float(until) seconds = until - now -- cgit v1.2.3