public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Zac Medico (zmedico)" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] portage r14736 - main/branches/2.1.7/bin
Date: Tue, 27 Oct 2009 22:54:56 +0000	[thread overview]
Message-ID: <E1N2uwK-0003dV-Jn@stork.gentoo.org> (raw)

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:




                 reply	other threads:[~2009-10-27 22:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1N2uwK-0003dV-Jn@stork.gentoo.org \
    --to=zmedico@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox