Ezio Melotti added the comment: I tried to reproduce the issue and copied /usr/share/zoneinfo/posix/Asia/Calcutta to /etc/localtime as suggested in msg134382, but test_imaplib passes on 2.7/3.2/3.3/3.4.
I wrote a C program to test the output of mktime: $ cat mk.c #include <stdio.h> #include <time.h> int main() { struct tm buf; char outbuf[80]; time_t tt; buf.tm_year = 2000-1900; buf.tm_mon = 1; buf.tm_mday = 1; buf.tm_hour = 5; buf.tm_min = 30; buf.tm_sec = 0; buf.tm_wday = 5; buf.tm_yday = 1; buf.tm_isdst = 0; tt = mktime(&buf); printf("mktime: %9.1f\n", (double)tt); strftime(outbuf, 80, "%c", &buf); printf("outbuf: %s\n", outbuf); return 0; } $ gcc -Wall -Wextra -O -ansi -pedantic mk.c -o mk $ ./mk mktime: 949363200.0 outbuf: Tue Feb 1 05:30:00 2000 Kasun, can you still reproduce the failure? If so, could you try the attached C program? ---------- nosy: +ezio.melotti versions: +Python 3.4 -Python 3.1 Added file: http://bugs.python.org/file29169/mk.c _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11882> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com