Your message dated Tue, 27 Dec 2022 23:25:10 +0000
with message-id <e1pajjm-00cclq...@fasolo.debian.org>
and subject line Bug#1027108: Removed package(s) from unstable
has caused the Debian Bug report #846238,
regarding python email.utils timezone problem
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
846238: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=846238
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python
Version: 2.7.9-1
When I use time or datetime library to get time, timezone returns the OS
timezone. On the other hand when I use
email.Utils.formatdate(localtime=1) to get time, timezone reported as
+02 which differs from OS timezone. Mailman, uses
email.Utils.formatdate(localtime=1) in different files when building
e-mail headers for reporting purposes, fails to report correct timezone.
# pwd
/usr/lib/mailman/Mailman
# grep -irl "email.Utils.formatdate(localtime=1)" *
ListAdmin.py
Message.py
MTA/Manual.py
Here is a transcript:
# date
Tue Nov 29 16:31:42 +03 2016
# python
Python 2.7.9 (default, Jun 29 2016, 13:08:31)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> print (time.localtime())
time.struct_time(tm_year=2016, tm_mon=11, tm_mday=29, tm_hour=16,
tm_min=33, tm_sec=16, tm_wday=1, tm_yday=334, tm_isdst=0)
>>> print (time.daylight)
1
>>>time.strftime('%X %x %Z')
'16:36:49 11/29/16 +03'
>>> import datetime
>>> datetime.datetime.now().time()
datetime.time(16, 37, 34, 810249)
>>> datetime.datetime.utcnow().time()
datetime.time(13, 39, 12, 200488)
>>> import email.utils
>>> print (email.Utils.formatdate())
Tue, 29 Nov 2016 13:35:34 -0000
>>> print (email.Utils.formatdate(localtime=1))
Tue, 29 Nov 2016 16:35:49 +0200
>>> quit()
# uname -a
Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64
GNU/Linux
I suggest that the timezone error in python email.utils be corrected.
--- End Message ---
--- Begin Message ---
Version: 2.7.18-13.2+rm
Dear submitter,
as the package python2.7 has just been removed from the Debian archive
unstable we hereby close the associated bug reports. We are sorry
that we couldn't deal with your issue properly.
For details on the removal, please see https://bugs.debian.org/1027108
The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.
Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmas...@ftp-master.debian.org.
Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)
--- End Message ---