From ada8d4756eef33addb930f3a8b8400e6f5615b56 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 27 Oct 2017 18:08:53 +0200 Subject: [PATCH] plugin tickets import bugzilla: fixed parsing of "created" and "updated" fields --- src/plugins/plugin_tickets_import_bugzilla.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/plugin_tickets_import_bugzilla.py b/src/plugins/plugin_tickets_import_bugzilla.py index d34615a4..e7b18deb 100755 --- a/src/plugins/plugin_tickets_import_bugzilla.py +++ b/src/plugins/plugin_tickets_import_bugzilla.py @@ -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')