From d88af652b4a66e10aee5f80bd392c690faa7efa8 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Thu, 24 May 2007 23:39:17 -0300 Subject: [PATCH] Revert "Implemented timezone migration" This reverts commit 8cf91cca3d054835c1a21f91d913ae66b05b59f0. breaks on fedora 7t4 --- darcs2git.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/darcs2git.py b/darcs2git.py index a793680..f287019 100644 --- a/darcs2git.py +++ b/darcs2git.py @@ -43,7 +43,6 @@ import re import gdbm as dbmodule import gzip import optparse -from email.utils import parsedate_tz ################################################################ # globals @@ -202,8 +201,10 @@ def darcs_date_to_git (x): return '%d' % int (time.mktime (t)) def darcs_timezone (x) : - tz = parsedate_tz(x)[9] / 60 - return "%+03d%02d" % (tz / 60, tz % 60) + time.strptime (x, '%a %b %d %H:%M:%S %Z %Y') + + # todo + return "+0100" ################################################################ # darcs -- 2.11.4.GIT