Message109432
Attached patch makes timezone(timedelta(0)) always return the same instance as timezone.utc. See issue9051 for pure python implementation.
With this patch, manipulation of aware datetime objects will be as efficient as that of naive datetime objects. Note that having timezone.utc is not enough to assure that the same tzinfo object is used because aware objects can be produced by datetime.strptime(). With this patch,
>>> datetime.strptime('2010-07-06 21:39:55 +0000', "%Y-%m-%d %H:%M:%S %z").tzinfo is timezone.utc
True |
|
Date |
User |
Action |
Args |
2010-07-06 21:55:53 | belopolsky | set | recipients:
+ belopolsky, mark.dickinson |
2010-07-06 21:55:53 | belopolsky | set | messageid: <1278453353.29.0.0260229757511.issue9183@psf.upfronthosting.co.za> |
2010-07-06 21:55:52 | belopolsky | link | issue9183 messages |
2010-07-06 21:55:52 | belopolsky | create | |
|