diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-05-26 03:22:59 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-05-26 03:22:59 (GMT) |
commit | d2d521eafdea651de075f987ca80bece033b9b40 (patch) | |
tree | ffec4997db7f5c20cb879d5eac0877154e6e34ad /Misc | |
parent | dcaf2ece6cbd432f8ad71ca2bebc4f79e3b97fbc (diff) | |
download | cpython-d2d521eafdea651de075f987ca80bece033b9b40.zip cpython-d2d521eafdea651de075f987ca80bece033b9b40.tar.gz cpython-d2d521eafdea651de075f987ca80bece033b9b40.tar.bz2 |
#665194: Add a localtime function to email.utils.
Without this function people would be tempted to use the other date functions
in email.utils to compute an aware localtime, and those functions are not as
good for that purpose as this code. The code is Alexander Belopolsy's from
his proposed patch for issue 9527, with a fix (and additional tests) by Brian
K. Jones.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -506,6 +506,7 @@ Simon Johnston Matt Joiner Thomas Jollans Nicolas Joly +Brian K. Jones Evan Jones Jeremy Jones Richard Jones @@ -46,6 +46,9 @@ Core and Builtins Library ------- +- Issue #665194: Added a localtime function to email.utils to provide an + aware local datetime for use in setting Date headers. + - Issue #12586: Added new provisional policies that implement convenient unicode support for email headers. See What's New for details. |