Fixes a bug in creating Python datetime from the ISO-8601 strings in the JSON.

Also adds a new test. Never again.