changeset 2399:acfc481629ac

plugin tickets import bugzilla: fixed parsing of "created" and "updated" fields
author Goffi <goffi@goffi.org>
date Fri, 27 Oct 2017 18:08:53 +0200
parents 3ff9d7a7fe71
children 8253ea069781
files src/plugins/plugin_tickets_import_bugzilla.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_tickets_import_bugzilla.py	Fri Oct 27 18:06:58 2017 +0200
+++ b/src/plugins/plugin_tickets_import_bugzilla.py	Fri Oct 27 18:08:53 2017 +0200
@@ -68,8 +68,8 @@
         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')