# HG changeset patch # User C?dric Duval # Date 1246806541 -7200 # Node ID 8263d98ffb1c7024a1850408169487bf849896e9 # Parent 1547126630e98788bc312ddacc80c508435c7fb9 patchbomb: use local time for the Date: header diff -r 1547126630e9 -r 8263d98ffb1c hgext/patchbomb.py --- a/hgext/patchbomb.py Sun Jul 05 16:42:10 2009 +0200 +++ b/hgext/patchbomb.py Sun Jul 05 17:09:01 2009 +0200 @@ -417,7 +417,7 @@ 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 -r 1547126630e9 -r 8263d98ffb1c tests/test-patchbomb.out --- a/tests/test-patchbomb.out Sun Jul 05 16:42:10 2009 +0200 +++ b/tests/test-patchbomb.out Sun Jul 05 17:09:01 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: 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 @@ In-Reply-To: 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 @@ In-Reply-To: