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.
The error actually occurs in the get_localtime script, and results from a failed call to dateparser.parse.
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.