mercurial/subrepo.py
changeset 36607 c6061cadb400
parent 36421 1df7e7b8558e
child 36690 b529e640015d
--- a/mercurial/subrepo.py	Thu Feb 08 23:27:24 2018 +0530
+++ b/mercurial/subrepo.py	Thu Feb 15 17:18:26 2018 +0100
@@ -36,6 +36,7 @@
     util,
     vfs as vfsmod,
 )
+from .utils import dateutil
 
 hg = None
 reporelpath = subrepoutil.reporelpath
@@ -1467,7 +1468,7 @@
         if date:
             # git's date parser silently ignores when seconds < 1e9
             # convert to ISO8601
-            env['GIT_AUTHOR_DATE'] = util.datestr(date,
+            env['GIT_AUTHOR_DATE'] = dateutil.datestr(date,
                                                   '%Y-%m-%dT%H:%M:%S %1%2')
         self._gitcommand(cmd, env=env)
         # make sure commit works otherwise HEAD might not exist under certain