am trying to export alle the change history of all my trac tickets via a tab delimited text file export. I successed so far with the following SQL Statement:
SELECT
id AS Ticket,
tc.author as author,
tc.field as field,
tc.newvalue as comments_new
from ticket t
LEFT JOIN ticket_change tc ON ( t.id=tc.ticket )
But I need also the time and date of each entry. There is a field time in the table ticket_change but it is only the time without the date. Seems like I have to use some functions within the SQL to get what I need. Can anybody help me to get there?
Every Help is very appreciated. Best Regards Ali