Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#9577 closed defect (fixed)

[PATCH] bugzilla2trac.py converting times to seconds instead of microseconds

Reported by: jmcdowell@… Owned by: jmcdowell@…
Priority: normal Milestone: 0.12.1
Component: contrib Version: 0.12-stable
Severity: normal Keywords: bugzilla2trac
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When running the bugzilla2trac.py migration script, timestamps from the Bugzilla database are being converted to seconds instead of microseconds, this causes all of the timestamps in the new Trac install to be very close to Epoch.

System Info:

Trac 0.12 using SQLLite backend Python 2.5 Bugzilla 3.6.1 using MySQL 5.1.42 backend O/S - OpenBSD 4.7

Attachments (1)

timestamps_in_usecs.diff (976 bytes ) - added by jmcdowell@… 14 years ago.
patch to bugzilla2trac.py to support timestamps in microseconds

Download all attachments as: .zip

Change History (6)

comment:1 by Remy Blank, 14 years ago

The bugzilla2trac is not actively supported by any of the current Trac developers. Would you mind taking a shot at implementing the timestamp conversion? If you could provide a patch and test it, I would integrate it.

by jmcdowell@…, 14 years ago

Attachment: timestamps_in_usecs.diff added

patch to bugzilla2trac.py to support timestamps in microseconds

comment:2 by jmcdowell@…, 14 years ago

Summary: bugzilla2trac.py converting times to seconds instead of microseconds[PATCH] bugzilla2trac.py converting times to seconds instead of microseconds

Added patch for making the timestamp units configurable

comment:3 by Remy Blank, 14 years ago

Milestone: 0.12.1
Owner: set to Remy Blank

Thanks!

comment:4 by Remy Blank, 14 years ago

Resolution: fixed
Status: newclosed

Patch applied in [10009], without the configurable part, as timestamps in 0.12 are always microseconds. To import into 0.11.x, use the importer from that branch.

comment:5 by Remy Blank, 14 years ago

Owner: changed from Remy Blank to jmcdowell@…

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain jmcdowell@….
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from jmcdowell@… to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.