ArchiveBox/archivebox
Mashiat Sarker Shakkhar 3fa593a5f6 util: Don't choke on unix timestamp string while parsing date.
Some older version of ArchiveBox stored unix timestamp as string in the
index instead of float. This created problem for me during migration
while running `archivebox init` on an archive created with a previous
revision of ArchiveBox. The archive that I have is in otherwise good
condition (not malformed or garbaled).

While we don't retain the old behavior, I think it is sane to at least
retain backward compatibility here while migrating.

Unfortunately, I don't have the exact revision that I used to create the
old archive - so I cannot be sure how I ended up with unix timestamp as
string in my index.

Additionally, convert unix timestamp into datetime. I think it's a bug
that we coerce float / int (presumably unix timestamp) into string.
These need to be converted to datetime.
2020-05-22 16:53:38 -04:00
..
cli logging.py: Import stderr from config. 2020-05-22 00:56:11 -04:00
config expose more django server config options 2019-05-02 19:15:16 -04:00
core expose more django server config options 2019-05-02 19:15:16 -04:00
extractors split up utils into separate files 2019-04-30 23:13:04 -04:00
index index/schema.py: Make cmd_version actually optional. 2019-09-10 23:51:49 -04:00
parsers fix parsing errors for older archive index formats 2019-05-01 02:28:48 -04:00
themes expose more django server config options 2019-05-02 19:15:16 -04:00
__init__.py move everything out of legacy folder 2019-04-27 17:26:24 -04:00
__main__.py move everything out of legacy folder 2019-04-27 17:26:24 -04:00
.flake8 add flake8 config 2019-03-30 15:41:26 -04:00
main.py expose more django server config options 2019-05-02 19:15:16 -04:00
manage.py add warning about running manage.py directly 2019-05-06 17:16:20 -04:00
mypy.ini first working django model with archivebox-shell command and sql exporting 2019-04-17 03:49:18 -04:00
system.py split up utils into separate files 2019-04-30 23:13:04 -04:00
util.py util: Don't choke on unix timestamp string while parsing date. 2020-05-22 16:53:38 -04:00
VERSION bump version 2019-05-02 17:52:43 -04:00