Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#9093 closed defect (fixed)

Conversion of ticket date in CSV broken on 64bit platforms

Reported by: martin.d.lacasse@… Owned by: Remy Blank
Priority: high Milestone: 0.12
Component: web frontend Version: 0.12dev
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When requesting a CSV report of tickets, date conversion fails when converting from timestamp, which seems to be stored in microseconds and long.

ValueError : 'year out of range'

I fixed behavior by changing line 52 of trac/util/datefmt.py as follows:

elif isinstance(t, (int, long, float)):

if t > 10*1234567890L:

t /= 1000000L

return datetime.fromtimestamp(t, tzinfo or localtz)

Attachments (0)

Change History (3)

comment:1 by Christian Boos, 14 years ago

Milestone: 0.12
Priority: normalhigh

Reproduced here.

comment:2 by Remy Blank, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in [9281]. Thanks for the bug report.

comment:3 by Remy Blank, 14 years ago

Owner: set to Remy Blank

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Remy Blank 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.