Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 13 years ago

#5813 closed enhancement (duplicate)

make it easy to replace relative created date with absolute one

Reported by: rjbs Owned by: Jonas Borgström
Priority: low Milestone:
Component: ticket system Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I don't want to have to hover to see the actual date/time that a ticket was created. Please provide a simple way to replace that text with the actual creation date. (If relative date becomes the tooltip, that's fine. I won't care, because I won't hover!)

Attachments (0)

Change History (14)

comment:1 by anonymous, 17 years ago

I very much agree with this request. Sometimes one needs to know the exact date stamp of a ticket. The colloquial date reference is nice, but the exact date stamp is necessary. Maybe we could just have them both.

comment:2 by Christian Boos, 17 years ago

In general, I find the colloquial date is much quicker to parse. Only this way can you immediately see if it's a matter of years, months or days. This is especially true when you have lots of dates like in the Change History or revision logs.

For the specific case of the ticket creation date however, it might indeed be useful to see the exact creation time at the first glance. This is however a trivial change to make in the local template, so I don't think it's worth making a configuration switch for this.

example customization:

  • ticket.html

     
    132132        <div id="ticket" py:if="ticket.exists or preview_mode"
    133133          class="${preview_mode and 'ticketdraft' or None}">
    134134          <div class="date">
    135             <p py:if="ticket.exists">Opened ${dateinfo(ticket.time_created)} ago</p>
     135            <p py:if="ticket.exists">Opened <b>${format_datetime(ticket.time_created)}</b> (${dateinfo(ticket.time_created)} ago)</p>
    136136            <p py:if="ticket.time_changed != ticket.time_created">Last modified ${dateinfo(ticket.time_changed)} ago</p>
    137137            <p py:if="not ticket.exists"><i>(future ticket)</i></p>
    138138          </div>

Proposing a wontfix, unless there's tremendeous support for the above change (those who have already voted for this can't vote again ;-) )

comment:3 by Noah Kantrowitz, 17 years ago

+1 on wontfix. Not hard to make a plugin for this though (which would make it user-selectable, which I like better).

comment:4 by sid, 17 years ago

+1 for wontfix on this.

comment:5 by sid, 17 years ago

Resolution: wontfix
Status: newclosed

3 months and no further replies - seems like the wontfix-ers have it.

comment:6 by anonymous, 15 years ago

I want absolute dates!

comment:7 by black.box@…, 15 years ago

It would be nice to have the options for exact dates in the ticket history and the reports (created & modified fields).

comment:8 by anonymous, 14 years ago

I would like exact dates please. And So do all my team - I have now ended up putting custom fields in so they can add the date manually.

comment:9 by debacle@…, 13 years ago

It would be better to have ISO 8601 dates as default and the prosaic date as option. My colleagues and I prefer absolute dates.

comment:10 by Christian Boos, 13 years ago

Resolution: wontfixworksforme

Note that it's now a user preference in 0.13 (try it there demo-0.13/prefs/datetime, change to absolute date format, then visit demo-0.13/log/trunk).

comment:11 by Christian Boos, 13 years ago

(IIRC, that was done by jomae part of the extensive #2182 changes)

in reply to:  11 comment:12 by framay <franz.mayer@…>, 13 years ago

Replying to cboos:

(IIRC, that was done by jomae part of the extensive #2182 changes)

Oh, I thought it was #9777, but nevertheless works fine in our installation with Trac 0.13dev-r10854

comment:13 by Christian Boos, 13 years ago

Resolution: worksformeduplicate

#9777 rather - closing as duplicate would be more correct.

in reply to:  2 comment:14 by debacle@…, 13 years ago

Replying to cboos:

example customization:

There is a problem with this approach. Having both the absolute date and the prosaic form together is too long for my taste. The absolute date, however, does not contain the link to the timeline. Instead, one has to change timeline/web_ui.py:

  • web_ui.py

    old new  
    241241        if data:
    242242            def dateinfo(date):
    243243                return self.get_timeline_link(req, date,
    244                                               pretty_timedelta(date),
     244                                              format_datetime(date),
    245245                                              precision='second')
    246246            data['dateinfo'] = dateinfo
    247247        return template, data, content_type

In the template, one still has to delete the obsolete "ago".

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.