[issue5094] datetime lacks concrete tzinfo impl. for UTC

Rafe Kaplan report at bugs.python.org
Tue May 25 23:58:49 CEST 2010


Rafe Kaplan <rafek at google.com> added the comment:

"Note that I am not suggesting passing anything to utcnow().  I would
either leave it unchanged or make it always return aware datetime
instances."

FYI, all other issues aside, having utcnow() (with no parameters) return a tzaware instance will introduce backward compatibility problems.  As it is, users are not expecting utcnow to return a date-time with any tzinfo.

----------

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


More information about the Python-bugs-list mailing list