dateTime objects must be timezone-aware
Brought to you by:
pabigot
Per http://www.w3.org/TR/xmlschema-2/#dateTime, all XML timezoned values are in UTC. To prevent confusion with Python, which has a concept of "naive" date/time values for which zone information is unavailable, PyXB should enforce the presence of a tzinfo field with zero minute offset in all timezoned instances.
That was a misinterpretation: true that all timezoned instances are in UTC, but XML still recognizes non-timezoned times that correspond nicely to Python's naive times.
Yes, it should be enforced in all timezoned instances, and the non-timezoned instances left with no tzinfo field.
commit 048b9d2e81ab17447e2bd89cdb0d328d163c1d46
Author: Peter A. Bigot <pabigot@‌>
Date: Sun Feb 26 07:27:13 2012 -0600