Modify ↓
#5941 closed defect (fixed)
daterange does not work for specified dates
Reported by: | Owned by: | Guillermo M Narvaja | |
---|---|---|---|
Priority: | normal | Component: | TicketStatsMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
I'm trying to create a graph for specific dates, but it doesn't work, e.g.
[[TicketStats(title = Total tickets last 6 months, height = 150, daterange=2009-01-01;2009-06-30,res_days=7)]]
This just throws an error:
Error: Macro TicketStats(title = Total tickets last 6 months, height = 150, daterange=2009-01-01;2009-06-30,res_days=7) failed unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'
I know the macro itself is working because a query for the last 6 months works fine, e.g.:
[[TicketStats(title = Total tickets last 6 months(per month), height = 150, daterange=6m,res_days=30)]]
Trac version is 0.12dev-r7984.
It's possible I just have the format wrong for the 'daterange' parameter, if so please put some examples up in the wiki.
Attachments (0)
Note: See
TracTickets for help on using
tickets.
Fixed on r6661