From: Zac Medico Date: Tue, 27 Oct 2009 22:54:56 +0000 (-0000) Subject: Use calendar.timegm instead of time.mktime, for correct timezone handling. X-Git-Tag: v2.1.7.2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5adb1df7290b168081de0559c2da37d4c878c5a4;p=portage.git Use calendar.timegm instead of time.mktime, for correct timezone handling. (trunk r14728) svn path=/main/branches/2.1.7/; revision=14736 --- diff --git a/bin/repoman b/bin/repoman index 063a778f8..f6fb55b31 100755 --- a/bin/repoman +++ b/bin/repoman @@ -9,6 +9,7 @@ from __future__ import print_function +import calendar import codecs try: from subprocess import getstatusoutput as subprocess_getstatusoutput @@ -824,7 +825,7 @@ def fetch_metadata_dtd(): elif last_modified is not None: last_modified = parsedate(last_modified) if last_modified is not None: - last_modified = time.mktime(last_modified) + last_modified = calendar.timegm(last_modified) metadata_dtd_tmp = "%s.%s" % (metadata_dtd, os.getpid()) try: