sartography / cr-connect-workflow

MIT License
6 stars 3 forks source link

Document assembly issue w/ bad version date #610

Open cullerton opened 1 month ago

cullerton commented 1 month ago

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 commented 1 month ago

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