Project

General

Profile

Actions

Feature #20310

open

Ability to switch date format (from relative into absolute) in issue notes titles

Added by Antonio Kless over 8 years ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

On Issue page, if there are some notes, every note has its own title, like "Updated by USERNAME about 1 month ago".

If hover "about 1 month ago" with mouse, there is HTML title (hovering tooltip) with absolute date of this note.

I ask an option to turn relative-style "about 1 month ago" titles into absolute-style "2015-06-09 16:56" titles by default. So admin (or even user for himself) could switch between this two modes.

I'm sorry if there is already such functionality, but I didn't find it.


Files

feature-33988-v1.patch (11.4 KB) feature-33988-v1.patch patch v1 Mizuki ISHIKAWA, 2023-08-07 09:33
settings.png (78.5 KB) settings.png Mizuki ISHIKAWA, 2023-08-07 09:34
relative_time.png (112 KB) relative_time.png Mizuki ISHIKAWA, 2023-08-07 09:37
relative_time_with_absolute_time.png (128 KB) relative_time_with_absolute_time.png Mizuki ISHIKAWA, 2023-08-07 09:37
absolute_time.png (116 KB) absolute_time.png Mizuki ISHIKAWA, 2023-08-07 09:37
relative_time_with_absolute_time_v2.png (51.3 KB) relative_time_with_absolute_time_v2.png Mizuki ISHIKAWA, 2023-08-08 02:10
feature-33988-v2.patch (11.4 KB) feature-33988-v2.patch Mizuki ISHIKAWA, 2023-08-08 02:16

Related issues

Related to Redmine - Feature #3148: Dates formatted as ages are too vagueNew2009-04-09

Actions
Actions #1

Updated by Mischa The Evil over 8 years ago

Antonio Kless wrote:

I ask an option to turn relative-style "about 1 month ago" titles into absolute-style "2015-06-09 16:56" titles by default. [...]

Almost the same result can be achieved using some custom CSS that would change every individual datetime link to activity pages, so that these lines will be shown (note that I use parentheses to indicate a link), instead of like this:

Updated by (USERNAME) (about 1 month) ago
now like the following:
Updated by (USERNAME) ([2015-06-09 16:56] about 1 month) ago

See the Task History Updated Dates thread in the forums for the details.

Actions #2

Updated by Toshi MARUYAMA over 8 years ago

  • Category set to Issues
Actions #3

Updated by Go MAEDA about 5 years ago

  • Related to Feature #3148: Dates formatted as ages are too vague added
Actions #4

Updated by Greg T almost 4 years ago

Mischa The Evil wrote:

Almost the same result can be achieved using some custom CSS

This code

a[href*="activity"][title*=":"]:before {
  content: ' [' attr(title) '] ';
}
used to provide a mostly acceptable workaround, but in Redmine 4.1.1 with jQuery title, hovering the dates has a very bad flickering effect. :(

This may work in application.js:

$(document).ready(function() {
  $('a[href*="activity"][title*=":"]').prepend(function() {
    var ret= '['+this.title+'] ';
    this.removeAttribute("title");
    return ret;
  });
});

Relative time should only be an option, though.

Actions #5

Updated by Mizuki ISHIKAWA 7 months ago

I have written a patch for this feature.
After applying this patch, you will be able to choose your favourite format from three different formats.

settings form:

relative_time(default) relative_time_with_absolute_time absolute_time
Actions #6

Updated by Antonio Kless 7 months ago

Thank you Mizuki ISHIKAWA!

There is a little issue: space between the "days" word and the open bracket is missed in relative_time_with_absolute_time format.

Actions #7

Updated by Mizuki ISHIKAWA 7 months ago

Antonio Kless wrote in #note-6:

Thank you Mizuki ISHIKAWA!

There is a little issue: space between the "days" word and the open bracket is missed in relative_time_with_absolute_time format.

Thank you for your feedback. Fixed patch.

Actions #8

Updated by Go MAEDA about 2 months ago

  • Target version set to Candidate for next major release
Actions

Also available in: Atom PDF