Alexander Belopolsky <alexander.belopol...@gmail.com> added the comment:

I am surprised that we don't see the same failure on 32-bit windows buildbot.  
Windows mktime does not support negative time_t in either 32 or 64 bit version:

http://msdn.microsoft.com/en-us/library/d1y53h2a(v=vs.110).aspx

We are probably just lucky and no Windows buildbot uses a TZ set ahead of UTC.  
 Stefan, what is your timezone?

What is happening here is that mktime() is called for 1970-01-01 00:00 which 
results in positive timestamp for the timezones west of Greenwich and negative 
timestamp east of Greenwich.  For example, using GNU date:

$ TZ=Europe/Paris date -d "1970-01-01 00:00" +%s
-3600

$ TZ=America/New_York date -d "1970-01-01 00:00" +%s
18000

I am adding Victor as an expert on pushing the limits of date/time functions.

----------
nosy: +haypo

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

Reply via email to