Comment 2 for bug 1744160

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote : Re: Change in iso8601 1.12.0 date format breaks parsing with py35

Traced this through, and seems to be coming from the fact that iso8601 switched from using their own internal TZ info, to using Python3's TZ info. The difference in these objects end up being that the custom iso8601 one stringifies to 'UTC', while the python one stringifies to 'UTC+00:00'.

This causes problems in oslo.versionedobjects to_primative call here:

https://github.com/openstack/oslo.versionedobjects/blob/master/oslo_versionedobjects/_utils.py#L28

Could be simple enough as change "tz == 'UTC'" to something like "'UTC' in tz". I will try that out locally and see how it goes.