Package: python2.6
Version: 2.6.6-8+b1

It was noticed that after upgrade of tzdata to 2011h-0squeeze1 (which
changed local time from UTC+3+DST (effective UTC+4) to UTC+4) Date:
header in mails from buildbot started to contain incorrect timezone
offsets (while having correct local time value). (Timestamps in
twistd.log remained correct even after reboot.)

With tzdata 2011k-0squeeze1 and Europe/Samara as a timezone:

% python -c 'import email.utils; print email.utils.formatdate(); print 
email.utils.formatdate(localtime=1)';date -R
Thu, 13 Oct 2011 12:22:12 -0000
Thu, 13 Oct 2011 16:22:12 +0300
Thu, 13 Oct 2011 16:22:12 +0400


The culprit seems to be time.timezone value which still indicates UTC+3,
while time.localtime() returns correct local time.
time.daylight and time.localtime().tm_isdst do not match.

% python -c 'import time; print time.timezone; print time.daylight; print 
time.localtime().tm_isdst;'      
-10800
1
0




-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (900, 'stable-updates'), (900, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python2.6 depends on:
ii  libbz2-1.0                1.0.5-6        high-quality block-sorting file co
ii  libc6                     2.11.2-10      Embedded GNU C Library: Shared lib
ii  libdb4.8                  4.8.30-2       Berkeley v4.8 Database Libraries [
ii  libexpat1                 2.0.1-7        XML parsing C library - runtime li
ii  libncursesw5              5.7+20100313-5 shared libraries for terminal hand
ii  libreadline6              6.1-3          GNU readline and history libraries
ii  libsqlite3-0              3.7.3-1        SQLite 3 shared library
ii  mime-support              3.48-1         MIME files 'mime.types' & 'mailcap
ii  python2.6-minimal         2.6.6-8+b1     A minimal subset of the Python lan

python2.6 recommends no packages.

Versions of packages python2.6 suggests:
ii  binutils                      2.20.1-16  The GNU assembler, linker and bina
pn  python2.6-doc                 <none>     (no description available)
pn  python2.6-profiler            <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to