plugin tickets import bugzilla: fixed parsing of "created" and "updated" fields

This commit is contained in:
Goffi 2017-10-27 18:08:53 +02:00
commit ada8d4756e

View file

@ -68,8 +68,8 @@ class BugzillaParser(object):
for bug in root.xpath('bug'):
ticket = {}
ticket['id'] = bug.findtext('bug_id')
ticket['creation'] = bug.findtext('creation_ts')
ticket['update'] = bug.findtext('delta_ts')
ticket['created'] = utils.date_parse(bug.findtext('creation_ts'))
ticket['updated'] = utils.date_parse(bug.findtext('delta_ts'))
ticket['title'] = bug.findtext('short_desc')
reporter_elt = bug.find('reporter')
ticket['reporter'] = reporter_elt.get('name')