diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py --- a/hgext/patchbomb.py +++ b/hgext/patchbomb.py @@ -415,7 +415,7 @@ def patchbomb(ui, repo, *revs, **opts): first = False m['User-Agent'] = 'Mercurial-patchbomb/%s' % util.version() - m['Date'] = util.datestr(start_time, "%a, %d %b %Y %H:%M:%S %1%2") + m['Date'] = email.Utils.formatdate(start_time[0]) start_time = (start_time[0] + 1, start_time[1]) m['From'] = sender diff --git a/tests/test-patchbomb.out b/tests/test-patchbomb.out --- a/tests/test-patchbomb.out +++ b/tests/test-patchbomb.out @@ -10,7 +10,7 @@ Subject: [PATCH] a X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab Message-Id: <8580ff50825a50c8f716.60@ User-Agent: Mercurial-patchbomb -Date: Thu, 01 Jan 1970 00:01:00 +0000 +Date: Thu, 01 Jan 1970 00:01:00 -0000 From: quux To: foo Cc: bar @@ -42,7 +42,7 @@ Content-Transfer-Encoding: 7bit Subject: [PATCH 0 of 2] test Message-Id: