From: Simon Hausmann Date: Sat, 14 Apr 2007 09:21:50 +0000 (+0200) Subject: Fix the timezone formatting. Now qgit also displays (parses) it correctly. X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=e8e5d6b62424b1b6920080f0422c6f98bf139ae6;p=python%2Ffast-export.git Fix the timezone formatting. Now qgit also displays (parses) it correctly. --- diff --git a/git-p4 b/git-p4 index 6db757a..44a07c2 100755 --- a/git-p4 +++ b/git-p4 @@ -922,10 +922,7 @@ class P4Sync(Command): except: pass - self.tz = - time.timezone / 36 - tzsign = ("%s" % self.tz)[0] - if tzsign != '+' and tzsign != '-': - self.tz = "+" + ("%s" % self.tz) + self.tz = "%+03d%02d" % (- time.timezone / 3600, ((- time.timezone % 3600) / 60)) self.gitOutput, self.gitStream, self.gitError = popen2.popen3("git fast-import")