Patchwork D9062: git: also convert timezone to int (issue6359)

login
register
mail settings
Submitter phabricator
Date Sept. 21, 2020, 2:23 p.m.
Message ID <differential-rev-PHID-DREV-rsq5s2p4e6jo5r2whm36-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47235/
State Superseded
Headers show

Comments

phabricator - Sept. 21, 2020, 2:23 p.m.
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Credit to moshez for testing this in the wild.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9062

AFFECTED FILES
  hgext/git/gitlog.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/hgext/git/gitlog.py b/hgext/git/gitlog.py
--- a/hgext/git/gitlog.py
+++ b/hgext/git/gitlog.py
@@ -389,7 +389,7 @@ 
         sig = pygit2.Signature(
             encoding.unifromlocal(stringutil.person(user)),
             encoding.unifromlocal(stringutil.email(user)),
-            timestamp,
+            int(timestamp),
             -int(tz // 60),
         )
         oid = self.gitrepo.create_commit(