public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] portage r14736 - main/branches/2.1.7/bin
@ 2009-10-27 22:54 99% Zac Medico (zmedico)
  0 siblings, 0 replies; 1+ results
From: Zac Medico (zmedico) @ 2009-10-27 22:54 UTC (permalink / raw
  To: gentoo-commits

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
===================================================================
--- 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 @@
 
 from __future__ import print_function
 
+import calendar
 import codecs
 try:
 	from subprocess import getstatusoutput as subprocess_getstatusoutput
@@ -824,7 +825,7 @@
 			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:




^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2009-10-27 22:54 99% [gentoo-commits] portage r14736 - main/branches/2.1.7/bin Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox