diff options
| author | 2021-08-04 02:14:52 -0400 | |
|---|---|---|
| committer | 2021-08-04 02:14:52 -0400 | |
| commit | a32569ddaeb4c668c86145304fb0d6a258bc09bf (patch) | |
| tree | bda55e2ef201c9c21aef61d9727f409160567958 /gallery_dl/extractor/common.py | |
| parent | fa6876a938e33e0f97ea4dd43b792c56afe3e2eb (diff) | |
| parent | 873d9a628e9412a79bdc64cd962470749de3425b (diff) | |
Update upstream source from tag 'upstream/1.18.2'
Update to upstream version '1.18.2'
with Debian dir 50487e387a6ba906f7ac9d1564ba5f0d36a0e2ae
Diffstat (limited to 'gallery_dl/extractor/common.py')
| -rw-r--r-- | gallery_dl/extractor/common.py | 3 |
1 files changed, 1 insertions, 2 deletions
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 |
