hgext/convert/cvs.py
changeset 36636 c6061cadb400
parent 36423 54f4328a07c2
child 37123 a8a902d7176e
--- a/hgext/convert/cvs.py	Thu Feb 08 23:27:24 2018 +0530
+++ b/hgext/convert/cvs.py	Thu Feb 15 17:18:26 2018 +0100
@@ -18,6 +18,7 @@
     pycompat,
     util,
 )
+from mercurial.utils import dateutil
 
 from . import (
     common,
@@ -93,7 +94,7 @@
                 cs.comment = self.recode(cs.comment)
                 if self.ui.configbool('convert', 'localtimezone'):
                     cs.date = makedatetimestamp(cs.date[0])
-                date = util.datestr(cs.date, '%Y-%m-%d %H:%M:%S %1%2')
+                date = dateutil.datestr(cs.date, '%Y-%m-%d %H:%M:%S %1%2')
                 self.tags.update(dict.fromkeys(cs.tags, id))
 
                 files = {}