# HG changeset patch # User Dirkjan Ochtman # Date 1242738645 -7200 # Node ID 8c7f1afad064da0f2cc5442f76078b921fbd315b # Parent 5fbee915ea5dc83bac5a7dab80ae723ece37c911 patchbomb: don't localize Date headers diff -r 5fbee915ea5d -r 8c7f1afad064 hgext/patchbomb.py --- a/hgext/patchbomb.py Tue May 19 14:14:07 2009 +0200 +++ b/hgext/patchbomb.py Tue May 19 15:10:45 2009 +0200 @@ -415,7 +415,7 @@ 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 -r 5fbee915ea5d -r 8c7f1afad064 tests/test-patchbomb.out --- a/tests/test-patchbomb.out Tue May 19 14:14:07 2009 +0200 +++ b/tests/test-patchbomb.out Tue May 19 15:10:45 2009 +0200 @@ -10,7 +10,7 @@ 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 @@ Subject: [PATCH 0 of 2] test Message-Id: