Modify ↓
#9093 closed defect (fixed)
Conversion of ticket date in CSV broken on 64bit platforms
| Reported by: | 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 , 16 years ago
| Milestone: | → 0.12 |
|---|---|
| Priority: | normal → high |
comment:2 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Fixed in [9281]. Thanks for the bug report.
comment:3 by , 16 years ago
| Owner: | set to |
|---|
Note:
See TracTickets
for help on using tickets.



Reproduced here.