1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00
gallery-dl/test
Mike Fährmann e7b30866d0
[postprocessor:mtime] fix timestamps from datetime objects (#2307)
'datetime.timestamp()', which got used to convert datetime objects to
POSIX timestamps, assumes naive datetimes represent LOCAL time, while
datetimes in 'date' metadata fields represent UTC time.

Ref: https://docs.python.org/3/library/datetime.html#datetime.datetime.timestamp
> Naive datetime instances are assumed to represent local time
> you can obtain the POSIX timestamp by … calculating the timestamp directly
2022-03-23 23:05:14 +01:00
..
__init__.py add tests for text-module 2015-10-03 14:51:13 +02:00
test_cache.py run tests without using 'nose' 2021-10-13 04:07:41 +02:00
test_config.py implement 'config.accumulate()' (#994) 2020-09-14 21:13:08 +02:00
test_cookies.py fix a third(!) bug in _check_cookies() (#2372) 2022-03-18 19:52:37 +01:00
test_downloader.py move 'util.PathFormat' into its own 'path' module 2021-09-27 21:29:37 +02:00
test_extractor.py [ytdl] add extractor for sites supported by youtube-dl 2021-07-10 20:55:47 +02:00
test_formatter.py [formatter] allow evaluating f-string literals 2022-03-18 13:31:01 +01:00
test_job.py extend blacklist/whitelist syntax (#2025) 2021-11-23 20:31:43 +01:00
test_oauth.py skip external OAuth tests (closes #908) 2020-07-30 19:26:09 +02:00
test_output.py implement a way to shorten filenames with east-asian characters 2021-09-13 21:38:33 +02:00
test_postprocessor.py [postprocessor:mtime] fix timestamps from datetime objects (#2307) 2022-03-23 23:05:14 +01:00
test_results.py [danbooru] inherit from BaseExtractor 2022-02-11 21:01:51 +01:00
test_text.py implement 'text.root_from_url()' 2022-03-01 03:09:57 +01:00
test_util.py implement 'datetime_to_timestamp()' 2022-03-23 22:36:01 +01:00