New submission from Burak Arslan <burak.ars...@arskom.com.tr>:

There's an issue with email.utils.formatdate function, illustrated here: 
https://gist.github.com/1321994

for reference i'm on Europe/Istanbul timezone, which is +03:00 because of DST 
at the time of this writing.

I'm on stable Python 2.7.2 on gentoo linux. 

When I run the attached script, I get:

    Fri, 28 Oct 2011 07:56:14 -0000
    datetime.datetime(2011, 10, 28, 9, 56, 14, 945831, tzinfo=<UTC>)

when the local time is 12:56. so the second line is correct and first one is 
not.

let me know if you need any more information.
thanks for your attention.

----------
components: Library (Lib)
files: test_formatdate.py
messages: 146551
nosy: burak.arslan
priority: normal
severity: normal
status: open
title: email.utils.formatdate function does not handle timezones correctly.
versions: Python 2.7
Added file: http://bugs.python.org/file23541/test_formatdate.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13284>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to