Modify ↓
#12482 closed defect (fixed)
Error when displaying Timeline on Trac 1.2
| Reported by: | sdegrande | Owned by: | sdegrande |
|---|---|---|---|
| Priority: | normal | Component: | DownloadsPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Ryan J Ollos | Trac Release: | 1.2 |
Description
When opening the Timeline (Trac 1.2, python 2.7), I get this error:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Trac-1.2.dev0-py2.7.egg/trac/timeline/web_ui.py", line 202, in process_request
events.append(self._event_data(provider, event))
File "/usr/local/lib/python2.7/dist-packages/Trac-1.2.dev0-py2.7.egg/trac/timeline/web_ui.py", line 380, in _event_data
dateuid = to_utimestamp(date)
File "/usr/local/lib/python2.7/dist-packages/Trac-1.2.dev0-py2.7.egg/trac/util/datefmt.py", line 112, in to_utimestamp
diff = dt - _epoc
TypeError: unsupported operand type(s) for -: 'int' and 'datetime.datetime'
Attached is a patch to fix the issue.
Thanks for you work.
Attachments (1)
Change History (5)
Changed 10 years ago by
| Attachment: | fix_timeline.patch added |
|---|
comment:1 Changed 10 years ago by
comment:3 Changed 10 years ago by
| Owner: | changed from Ryan J Ollos to sdegrande |
|---|
Note: See
TracTickets for help on using
tickets.



Thanks for the patch. The change is needed due to the removal of deprecated parts of the API in [trac 13589].