Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#6115 closed enhancement (wontfix)

$NOW dynamic variable

Reported by: anonymous Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hello,

for some reports I use I have found useful to be able to filter according to a given timeframe (e.g. tickets submitted in last 2 hours)

On my local copy I managed it with following changes in trac/ticket/report.py

[line 22, add following line]

import time

[line 442, at the end of the function get_var_args add the following code]

if not report_args.has_key('NOW'):
    report_args['NOW'] = int(time.time())

Attachments (0)

Change History (2)

comment:1 by sid, 17 years ago

Each database already has this type of thing as part of its standard SQL language.

For example, in SQLite, you can use:

SELECT date('now');

In MySQL, you can use:

CURDATE()
CURRENT_TIME()

Propose to close as wontfix

comment:2 by anonymous, 17 years ago

Resolution: wontfix
Status: newclosed

Modify Ticket

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