hgext/convert/darcs.py
branchstable
changeset 49885 05b329cbd23d
parent 49372 270f8e89ff32
child 51863 f4733654f144
--- a/hgext/convert/darcs.py	Thu Jan 05 19:47:35 2023 -0500
+++ b/hgext/convert/darcs.py	Fri Jan 06 12:16:04 2023 -0500
@@ -143,7 +143,7 @@
     def getcommit(self, rev):
         elt = self.changes[rev]
         dateformat = b'%a %b %d %H:%M:%S %Z %Y'
-        date = dateutil.strdate(elt.get('local_date'), dateformat)
+        date = dateutil.strdate(self.recode(elt.get('local_date')), dateformat)
         desc = elt.findtext('name') + '\n' + elt.findtext('comment', '')
         # etree can return unicode objects for name, comment, and author,
         # so recode() is used to ensure str objects are emitted.