Alexander Belopolsky <alexander.belopol...@gmail.com> added the comment:
Working on this. It turns out tm_gmtoff uses the opposite sign to that of timezone in time.h. For more confusion, consider this: $ TZ=EST+5 date +%z -0500 I am rechecking all UTC offset signs. On Fri, Jun 22, 2012 at 3:36 PM, Jesús Cea Avión <rep...@bugs.python.org> wrote: > > Jesús Cea Avión <j...@jcea.es> added the comment: > > This patch breaks OpenIndiana buildbots. For instance > > http://www.python.org/dev/buildbot/all/builders/AMD64%20OpenIndiana%203.x/builds/3810/steps/test/logs/stdio > > """ > FAIL: test_astimezone_default_eastern > (test.datetimetester.TestDateTimeTZ_Pure) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/test/support.py", > line 1139, in inner > return func(*args, **kwds) > File > "/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/test/datetimetester.py", > line 3286, in test_astimezone_default_eastern > self.assertEqual(local.strftime("%z %Z"), "+0500 EST") > AssertionError: '-0500 EST' != '+0500 EST' > - -0500 EST > ? ^ > + +0500 EST > ? ^ > """ > > ---------- > nosy: +jcea > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue9527> > _______________________________________ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9527> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com