From dc1158d6b84fbc80fcd3776bbe1779491ea77736 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Thu, 24 May 2007 23:38:54 -0300 Subject: [PATCH] Breaks on FC7t4 Revert "Fixed a time conversion issue. git-fast-import was receiving a localtime and timezone where it expected a UTC time and local timezone." This reverts commit 94de2fc9fd447ffb32189e043109ed2aebcf25e0. --- darcs2git.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/darcs2git.py b/darcs2git.py index 181fca0..a793680 100644 --- a/darcs2git.py +++ b/darcs2git.py @@ -44,7 +44,6 @@ import gdbm as dbmodule import gzip import optparse from email.utils import parsedate_tz -from calendar import timegm ################################################################ # globals @@ -200,7 +199,7 @@ def system (c, ignore_error=0, timed=0): def darcs_date_to_git (x): t = time.strptime (x, '%Y%m%d%H%M%S') - return '%d' % int (timegm (t)) + return '%d' % int (time.mktime (t)) def darcs_timezone (x) : tz = parsedate_tz(x)[9] / 60 -- 2.11.4.GIT