[issue9256] plistlib should create non-naïve datetime objects

R. David Murray report at bugs.python.org
Thu Jun 7 14:48:49 CEST 2012


R. David Murray <rdmurray at bitdance.com> added the comment:

An alternative is to do what the email package in 3.3 does, and treat naive datetimes as exactly "UTC referenced but with no information as to what local timezone they originated in".  Either way, a program using the plistlib is going to have to know about this and handle the distinction itself, since as you say datetime doesn't have a way to make this differentiation (other than naive vs aware).  So it needs to be documented clearly if it isn't already.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9256>
_______________________________________


More information about the Python-bugs-list mailing list