Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

align timestamp to timingresolution

  • Loading branch information...
commit 32076164afafb46b53b68366c2668593fb7aa97f 1 parent 42e2021
Tom Schutter authored

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. +6 1 bztotj.py
7 bztotj.py
@@ -3,6 +3,8 @@
3 3 """
4 4 Export Bugzilla bugs to a TaskJuggler project.
5 5
  6 +Tested with Bugzilla-3.6.2 and TaskJuggler-3.1.0.
  7 +
6 8 Copyright (c) 2006-2012 Tom Schutter
7 9 All rights reserved.
8 10
@@ -262,7 +264,10 @@ def build_resolved_bug_task_list(options, db_connection, milestone):
262 264 bz_severity = row[3]
263 265 bz_keywords = row[4]
264 266 bz_assigned_to = str(row[5])
265   - fixed_timestamp = row[6].isoformat("-")
  267 + # timestamp must be aligned to timingresolution (1h)
  268 + timestamp = row[6]
  269 + timestamp = timestamp.replace(minute=0, second=0, microsecond=0)
  270 + fixed_timestamp = timestamp.isoformat("-")
266 271 summary = row[7]
267 272
268 273 flag_estimate_needed = False

0 comments on commit 3207616

Please sign in to comment.
Something went wrong with that request. Please try again.