Mercurial > public > mercurial-scm > hg-stable
comparison hgext/patchbomb.py @ 9047:8263d98ffb1c
patchbomb: use local time for the Date: header
author | C?dric Duval <cedricduval@free.fr> |
---|---|
date | Sun, 05 Jul 2009 17:09:01 +0200 |
parents | 1547126630e9 |
children | 141e3ef20d84 |
comparison
equal
deleted
inserted
replaced
9046:1547126630e9 | 9047:8263d98ffb1c |
---|---|
415 if first: | 415 if first: |
416 parent = m['Message-Id'] | 416 parent = m['Message-Id'] |
417 first = False | 417 first = False |
418 | 418 |
419 m['User-Agent'] = 'Mercurial-patchbomb/%s' % util.version() | 419 m['User-Agent'] = 'Mercurial-patchbomb/%s' % util.version() |
420 m['Date'] = email.Utils.formatdate(start_time[0]) | 420 m['Date'] = email.Utils.formatdate(start_time[0], localtime=True) |
421 | 421 |
422 start_time = (start_time[0] + 1, start_time[1]) | 422 start_time = (start_time[0] + 1, start_time[1]) |
423 m['From'] = sender | 423 m['From'] = sender |
424 m['To'] = ', '.join(to) | 424 m['To'] = ', '.join(to) |
425 if cc: | 425 if cc: |