hgext/notify.py
changeset 36607 c6061cadb400
parent 35954 386c1e45e671
child 37084 f0b6fbea00cf
--- a/hgext/notify.py	Thu Feb 08 23:27:24 2018 +0530
+++ b/hgext/notify.py	Thu Feb 15 17:18:26 2018 +0100
@@ -149,6 +149,7 @@
     registrar,
     util,
 )
+from mercurial.utils import dateutil
 
 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
@@ -360,7 +361,7 @@
             for k, v in headers:
                 msg[k] = v
 
-        msg['Date'] = util.datestr(format="%a, %d %b %Y %H:%M:%S %1%2")
+        msg['Date'] = dateutil.datestr(format="%a, %d %b %Y %H:%M:%S %1%2")
 
         # try to make subject line exist and be useful
         if not subject: