summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Simon Hausmann <simon@lst.de>2007-04-14 11:21:50 +0200
committerLibravatar Simon Hausmann <simon@lst.de>2007-04-14 11:21:50 +0200
commitf291b4e3d47fb03a65c0dfcfbd28f8fabb6187c1 (patch)
tree471ed4fb850819a6aabb070e93b20680c006f919 /contrib
parentPrint an error message of some sort if git fast-import fails. (diff)
downloadtgif-f291b4e3d47fb03a65c0dfcfbd28f8fabb6187c1.tar.xz
Fix the timezone formatting. Now qgit also displays (parses) it correctly.
Signed-off-by: Simon Hausmann <simon@lst.de>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/fast-import/git-p45
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index 6db757ae43..44a07c27ce 100755
--- a/contrib/fast-import/git-p4
+++ b/contrib/fast-import/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")