https://github.com/SoftwareHeritage/swh-model
Revision 6dd6acecc8297f8c9f77bdae0ccd291ceabdfd8e authored by Valentin Lorentz on 14 August 2020, 12:12:29 UTC, committed by Valentin Lorentz on 14 August 2020, 12:12:35 UTC
We may unknowingly pass naive datetimes to the storage through them,
causing the underlying DB to assign them a timezone that might not match
the actual one.

It already happens in swh.model and swh.loader.package tests.
1 parent d1db7b9
History
Tip revision: 6dd6acecc8297f8c9f77bdae0ccd291ceabdfd8e authored by Valentin Lorentz on 14 August 2020, 12:12:29 UTC
model: Raise error on naive datetimes.
Tip revision: 6dd6ace
File Mode Size
bin
docs
swh
.gitignore -rw-r--r-- 137 bytes
.pre-commit-config.yaml -rw-r--r-- 882 bytes
AUTHORS -rw-r--r-- 112 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTORS -rw-r--r-- 31 bytes
LICENSE -rw-r--r-- 34.3 KB
MANIFEST.in -rw-r--r-- 157 bytes
Makefile -rw-r--r-- 163 bytes
Makefile.local -rw-r--r-- 24 bytes
README.md -rw-r--r-- 620 bytes
mypy.ini -rw-r--r-- 571 bytes
pyproject.toml -rw-r--r-- 39 bytes
pytest.ini -rw-r--r-- 110 bytes
requirements-cli.txt -rw-r--r-- 23 bytes
requirements-test.txt -rw-r--r-- 26 bytes
requirements.txt -rw-r--r-- 318 bytes
setup.cfg -rw-r--r-- 247 bytes
setup.py -rwxr-xr-x 2.5 KB
tox.ini -rw-r--r-- 479 bytes

README.md

back to top