Mercurial > public > mercurial-scm > hg
diff contrib/convert-repo @ 2093:5cc414722587
convert-repo: fix reversed time zone offset
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Wed, 19 Apr 2006 11:29:41 -0700 |
parents | 40346aa66b0f |
children | e6a7a6a33a62 |
line wrap: on
line diff
--- a/contrib/convert-repo Wed Apr 19 11:17:13 2006 -0700 +++ b/contrib/convert-repo Wed Apr 19 11:29:41 2006 -0700 @@ -73,7 +73,7 @@ if n == "parent": parents.append(v) tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] - tz = int(tzs) * (int(tzh) * 3600 + int(tzm)) + tz = -int(tzs) * (int(tzh) * 3600 + int(tzm)) date = tm + " " + str(tz) return (parents, author, date, message)