--- a/hgext/convert/monotone.py Thu Feb 08 23:27:24 2018 +0530
+++ b/hgext/convert/monotone.py Thu Feb 15 17:18:26 2018 +0100
@@ -14,8 +14,8 @@
from mercurial import (
error,
pycompat,
- util,
)
+from mercurial.utils import dateutil
from . import common
@@ -310,9 +310,10 @@
certs = self.mtngetcerts(rev)
if certs.get('suspend') == certs["branch"]:
extra['close'] = 1
+ dateformat = "%Y-%m-%dT%H:%M:%S"
return common.commit(
author=certs["author"],
- date=util.datestr(util.strdate(certs["date"], "%Y-%m-%dT%H:%M:%S")),
+ date=dateutil.datestr(dateutil.strdate(certs["date"], dateformat)),
desc=certs["changelog"],
rev=rev,
parents=self.mtnrun("parents", rev).splitlines(),