diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py --- a/hgext/patchbomb.py +++ b/hgext/patchbomb.py @@ -417,7 +417,7 @@ def patchbomb(ui, repo, *revs, **opts): first = False m['User-Agent'] = 'Mercurial-patchbomb/%s' % util.version() - m['Date'] = email.Utils.formatdate(start_time[0]) + m['Date'] = email.Utils.formatdate(start_time[0], localtime=True) 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: References: 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 @@ -1192,7 +1192,7 @@ Message-Id: References: 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 @@ -1208,7 +1208,7 @@ Message-Id: <8580ff50825a50c8f716.61@ In-Reply-To: