Edgewall Software
Modify

Opened 19 years ago

Last modified 15 years ago

#1996 new enhancement

Add a report formatting option to format timestamps

Reported by: ebrown@… Owned by:
Priority: low Milestone: unscheduled
Component: report system Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Matthew Good)

Based on the code in source:/trunk/trac/ticket/report.py it appears that a subset of 4 fields are automatically formatted as date strings. I am not sure what formatting option you can make available (already use _ and __ etc) but it would be nice to be able to dictate what columns are formatted. As far as I can tell SQLite does not include date formatting in their SQL functions. Probably an easy fix.

(for reference, I am trying to add the last comment date).

Attachments (0)

Change History (5)

comment:1 by Christopher Lenz, 19 years ago

Milestone: 0.9
Priority: normallow

Not for 0.9.

comment:2 by Matthew Good, 19 years ago

Description: modified (diff)

#2057 has been marked as a duplicate of this ticket.

comment:3 by sawtelle@…, 19 years ago

Is this related to the problem of "Datetime(changetime, 'unixepoch') AS modified" resulting in a column title of "Datetime(changetime, 'unixepoch')" rather than "Modified"?

comment:4 by Christian Boos, 18 years ago

Milestone: 0.12

It could be interesting to have a way to add a post-processing step for dates that would ease the differences between different SQL date formatting syntaxes, so maybe a _date_... prefix could be used.

Another possibility would be to use real date columns (as suggested in #3935) in the hope that a common SQL subset can be used to manipulate them (MySQL as usual seems to have its own ways to deal with dates).

comment:5 by Remy Blank, 15 years ago

Milestone: next-major-0.1Xunscheduled
Owner: daniel removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.