This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lavajoe
Recipients docs@python, lavajoe
Date 2011-01-17.01:46:35
SpamBayes Score 3.73667e-10
Marked as misclassified No
Message-id <1295228798.1.0.908043955064.issue10921@psf.upfronthosting.co.za>
In-reply-to
Content
Regarding problem #4, it actually appears that returning local time is the right thing to do, since it matches the behavior of Time2Internaldate().  Returning UTC, as the doc states, would potentially break IMAP append() that can include an internaldate possibly returned from Internaldate2tuple() in typical usage (like when copying messages).  In this case, the doc is wrong on Internaldate2tuple().

I have attached a new patch to both the code and doc that replaces the old patch.  I now return localtime rather than gmtime, but other than that, the DST fix remains the same and now handles the cases near DST changes correctly.

Ultimately, it might be desirable to be able always stay in UTC, so perhaps adding UTC variants of both Internaldate2tuple() and Time2Internaldate() (and a UTC option to append()) would be a good enhancement for later.
History
Date User Action Args
2011-01-17 01:46:38lavajoesetrecipients: + lavajoe, docs@python
2011-01-17 01:46:38lavajoesetmessageid: <1295228798.1.0.908043955064.issue10921@psf.upfronthosting.co.za>
2011-01-17 01:46:35lavajoelinkissue10921 messages
2011-01-17 01:46:35lavajoecreate