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

Document assembly issue w/ bad version date #610

Open
cullerton opened this issue Aug 13, 2024 · 2 comments
Open

Document assembly issue w/ bad version date #610

cullerton opened this issue Aug 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@cullerton
Copy link
Collaborator

No description provided.

@cullerton
Copy link
Collaborator Author

The error actually occurs in the get_localtime script, and results from a failed call to dateparser.parse.

PgpotM-A_deDXtgoWS5vg1-xC6e1i6RVZw

parsed_timestamp = dateparser.parse(timestamp, settings={'TIMEZONE': 'UTC'})

The date looked malformed in the DB, and unlike all the other dates. I believe this resulted in None being returned.
Also, the date field was not pre-populated in the form even though there was a value in the DB.

We should put a try around the code in the script.

@cullerton cullerton added the bug Something isn't working label Aug 13, 2024
@cullerton
Copy link
Collaborator Author

We actually check for VerDate.
I believe the "missing" VerDate was a red herring.

@cullerton cullerton changed the title Document assembly issue w/ no version date Document assembly issue w/ bad version date Aug 15, 2024
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