From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1N2uwM-0001U0-D2 for garchives@archives.gentoo.org; Tue, 27 Oct 2009 22:54:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D8FFCE07D1; Tue, 27 Oct 2009 22:54:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B269CE07D1 for ; Tue, 27 Oct 2009 22:54:57 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 4F62467AF6 for ; Tue, 27 Oct 2009 22:54:57 +0000 (UTC) Received: from zmedico by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1N2uwK-0003dV-Jn for gentoo-commits@lists.gentoo.org; Tue, 27 Oct 2009 22:54:56 +0000 To: gentoo-commits@lists.gentoo.org From: "Zac Medico (zmedico)" Subject: [gentoo-commits] portage r14736 - main/branches/2.1.7/bin X-VCS-Repository: portage X-VCS-Revision: 14736 X-VCS-Files: main/branches/2.1.7/bin/repoman X-VCS-Directories: main/branches/2.1.7/bin X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico Content-Type: text/plain; charset=UTF-8 Message-Id: Sender: Zac Medico Date: Tue, 27 Oct 2009 22:54:56 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: d469906f-5f51-476e-840e-43e2b1081932 X-Archives-Hash: b5504100f1c9d7a6d83b92f394a0bd57 Author: zmedico Date: 2009-10-27 22:54:56 +0000 (Tue, 27 Oct 2009) New Revision: 14736 Modified: main/branches/2.1.7/bin/repoman Log: Use calendar.timegm instead of time.mktime, for correct timezone handling= . (trunk r14728) Modified: main/branches/2.1.7/bin/repoman =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- main/branches/2.1.7/bin/repoman 2009-10-27 22:48:32 UTC (rev 14735) +++ main/branches/2.1.7/bin/repoman 2009-10-27 22:54:56 UTC (rev 14736) @@ -9,6 +9,7 @@ =20 from __future__ import print_function =20 +import calendar import codecs try: from subprocess import getstatusoutput as subprocess_getstatusoutput @@ -824,7 +825,7 @@ elif last_modified is not None: last_modified =3D parsedate(last_modified) if last_modified is not None: - last_modified =3D time.mktime(last_modified) + last_modified =3D calendar.timegm(last_modified) =20 metadata_dtd_tmp =3D "%s.%s" % (metadata_dtd, os.getpid()) try: