Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

negative dates apparently give issues #27

Open
vanatteveldt opened this issue Dec 5, 2022 · 0 comments
Open

negative dates apparently give issues #27

vanatteveldt opened this issue Dec 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@vanatteveldt
Copy link
Member

From a chat with @mrwunderbar666:

"it turns out that some articles had malformed datetime strings: "-0001-11-30T00:00:00" and AmCAT just accepted them"

But then on aggregating there's an error:

nov 29 18:20:50 amcat2 uvicorn[20445]:   File "/srv/amcat4opted/amcat4/aggregate.py"
nov 29 18:20:50 amcat2 uvicorn[20445]:     result = datetime.utcfromtimestamp(result
nov 29 18:20:50 amcat2 uvicorn[20445]: ValueError: year -1 is out of range
@vanatteveldt vanatteveldt added the bug Something isn't working label Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant