]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/git.py
Get TZ offset from C localtime, given tm_gmtoff
[bup.git] / lib / bup / git.py
index afd1b3614816b5780fe1d0a6beece597e14dd563..2fc155f6a49ed8a81ef5b5580d7c19fa231334f4 100644 (file)
@@ -761,7 +761,7 @@ class PackWriter:
 
 
 def _git_date(date):
-    return '%d %s' % (date, time.strftime('%z', time.localtime(date)))
+    return '%d %s' % (date, utc_offset_str(date))
 
 
 def _gitenv(repo_dir = None):