Skip to content

Commit

Permalink
align timestamp to timingresolution
Browse files Browse the repository at this point in the history
  • Loading branch information
tschutter committed Apr 10, 2012
1 parent 42e2021 commit 3207616
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bztotj.py
Expand Up @@ -3,6 +3,8 @@
"""
Export Bugzilla bugs to a TaskJuggler project.
Tested with Bugzilla-3.6.2 and TaskJuggler-3.1.0.
Copyright (c) 2006-2012 Tom Schutter
All rights reserved.
Expand Down Expand Up @@ -262,7 +264,10 @@ def build_resolved_bug_task_list(options, db_connection, milestone):
bz_severity = row[3]
bz_keywords = row[4]
bz_assigned_to = str(row[5])
fixed_timestamp = row[6].isoformat("-")
# timestamp must be aligned to timingresolution (1h)
timestamp = row[6]
timestamp = timestamp.replace(minute=0, second=0, microsecond=0)
fixed_timestamp = timestamp.isoformat("-")
summary = row[7]

flag_estimate_needed = False
Expand Down

0 comments on commit 3207616

Please sign in to comment.