summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-05-26 03:22:59 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-05-26 03:22:59 (GMT)
commitd2d521eafdea651de075f987ca80bece033b9b40 (patch)
treeffec4997db7f5c20cb879d5eac0877154e6e34ad /Misc
parentdcaf2ece6cbd432f8ad71ca2bebc4f79e3b97fbc (diff)
downloadcpython-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/ACKS1
-rw-r--r--Misc/NEWS3
2 files changed, 4 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 265cb17..16f55ea 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -506,6 +506,7 @@ Simon Johnston
Matt Joiner
Thomas Jollans
Nicolas Joly
+Brian K. Jones
Evan Jones
Jeremy Jones
Richard Jones
diff --git a/Misc/NEWS b/Misc/NEWS
index 369b1a5..4f20446 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.