Python Standalone API returns invalid ISO format datetime string

Heya,
I just wanted to put this here in case others come across this issue in the future. I suspect it’s less to do with deadline and more so datetime versions but anyhow.

The returned time strings appear to culls appending 0’s and can lead to it returning microseconds with to two decimal points and not what appears to be a minimum of 3 for it to be parsed properly by datetime.fromisoformat(). The attached error is below:

task = dc.Tasks.GetJobTasks(job["_id"])["Tasks"][INDEX]
end_time = datetime.fromisoformat(task["Comp"])
ValueError: Invalid isoformat string: '2025-01-21T14:48:12.44+11:00'

Oh, it even strips the entire sub second string if its all 0’s