Try harder to remove timezone info from the date

* gen-changelog.py (process_commit): The timezone shit can start
	either with a '+' or a '-'.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-11-18 15:59:34 +01:00
parent 021edee910
commit 86aa07c5c9
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ def process_commit(lines, files):
fields = top_line.split(' ')
# 1. remove the time and timezone stuff in "2008-05-13 07:10:28 +0000 name"
if fields[2].startswith('+'):
if fields[2].startswith('+') or fields[2].startswith('-'):
del fields[2]
if fields[1][2] == ':' and fields[1][5] == ':':
del fields[1]