How to change the code so in ticket comments and timeline to see "Changed X days ago by XXX (real date of this change)"?

2 views
Skip to first unread message

anebi

unread,
Oct 21, 2009, 3:47:02 AM10/21/09
to Trac Development
Hi,

i have installed trac 0.11.4 and i want to change the code for ticket
comments and timeline so "Changed X days ago by XXX" to be showed this
way "Changed X days ago by XXX (real date of this change)".

What i want is "Changed X days ago by XXX" to show the real date
(probably and time).

How can i do this?

i'm checking ticket.html file and i tried to use dateinfo, but is this
correct way to do this?

Changed ${dateinfo(change.date)} ago by ${authorinfo(change.author)}
(${dateinfo(date)})

Thanks in advanced!

anebi

unread,
Oct 21, 2009, 4:40:31 AM10/21/09
to Trac Development
I found out how to do this. I change it this way: (${format_datetime
(change.date, '%Y-%m-%d %H:%M:%S %z')})

Mat Booth

unread,
Oct 21, 2009, 7:21:23 AM10/21/09
to trac...@googlegroups.com
2009/10/21 anebi <aneb...@gmail.com>:

Just FYI, it shows the real date and time in a tooltip if you hover
over the "7 months" in "Changed 7 months ago by Someone"


--
Mat Booth

A: Because it destroys the order of the conversation.
Q: Why shouldn't you do it?
A: Posting your reply above the original message.
Q: What is top-posting?

Reply all
Reply to author
Forward
0 new messages