Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369802

Summary: Date (format) in History view is not user-friendly
Product: [Technology] EGit Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: markus.kell.r, matthias.sohn, raue, robin.rosenberg, robin
Version: 1.3   
Target Milestone: 3.6   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 419573    
Attachments:
Description Flags
Picture none

Description Dani Megert CLA 2012-01-26 09:05:41 EST
The date format in the History view uses UTC which is not very user-friendly. In order to see a time sequence or the distance between two bug fixes, one has to manually convert into a fixed timezone (probably the local one).

See attached picture to get an idea.
Comment 1 Dani Megert CLA 2012-01-26 09:19:02 EST
Created attachment 210113 [details]
Picture
Comment 2 Dani Megert CLA 2012-01-26 09:45:37 EST
I heard the argument that the timezone is shown to get the "Git" feeling, but if I look at other places in EGit (e.g. Commit viewer, commit area in History view) , the timezone is never shown. Why is it a must in the History view?
Comment 3 Dani Megert CLA 2012-01-26 09:47:45 EST
If we want to keep the timezone, then I suggest to add an option to hide the timezone.
Comment 4 Dani Megert CLA 2012-03-02 05:29:13 EST
Ping!

It is really a pain to parse the date in the History view. Please take a look at the picture.
Comment 5 Robin Rosenberg CLA 2012-03-02 06:04:25 EST
"User friendly" is very subjective, so that is not helpful is fixing something.

How about displaying time on the committer's timezone, omitting timezone if it
happens to be the user's local time zone?
Comment 6 Dani Megert CLA 2012-03-02 06:22:01 EST
(In reply to comment #5)
> "User friendly" is very subjective, so that is not helpful is fixing something.

So, are you saying, that you can quickly and easily read the dates in the attached picture and bring them into a time sequence? I can't.

 
> How about displaying time on the committer's timezone, omitting timezone if it
> happens to be the user's local time zone?

I would simply like to see the date/time like it is already shown in the commit editor (yes, it already works there as expected/desired :-) and converted to my local timezone, so that I don't have to compute it myself.


I think the best is to make it configurable because this is really a matter of taste. There is no one-size-fits-all. Note that there is already something along those lines on the Git > Label Decorations | Other preference page.
Comment 7 Markus Keller CLA 2014-11-13 11:29:06 EST
Still major.

(In reply to Robin Rosenberg from comment #5)
> "User friendly" is very subjective, so that is not helpful is fixing
> something.

No. Dani gave objective reasons why using the committer's time zone is not user-friendly: Comparing timestamps from different time zones is an undue burden.

There are two reasonable formats:
1. local time zone (rendered without +/-ZZZZ)
    => to be used wherever it's likely that the user needs to compare times
2. original time zone (rendered with +/-ZZZZ)
    => can be shown as additional info when a "long"/"original" format is desired

The History view should just use the local time zone. Or at least a configurable time format (though I don't know any place in EGit where the format from Label Decorations is actually used).

The original times can be shown in the History view's preview, or in a tooltip in the commit editor.
Comment 8 Robin Stocker CLA 2014-11-18 08:43:30 EST
Proposed implementation: https://git.eclipse.org/r/36624

Shows date in local time zone in column, and date in original time zone on hover (in ISO format).
Comment 9 Robin Stocker CLA 2014-11-23 01:47:44 EST
There is disagreement on the review about how the date with time zone *in the tool tip* should be formatted. The change uses ISO 8601 format, which looks like this (regardless of locale):

2014-11-10 16:34:54 +0100

Matthias would like it to be the locale date format with time zone, which looks like this:

DE: 10.11.2014 16:34:54 +0100
US: Nov 10, 2014 4:34:54 PM +0100

I like ISO because it's unambiguous and frequently used for showing international times, and most if not all developers should be familiar with it. And showing a locale-specific format with a time zone feels strange to me. But I see the argument that using a different format in the tool tip can be confusing.

What do you think?
Comment 10 Matthias Sohn CLA 2014-12-02 02:20:36 EST
merged as 0c4bf7ab1a71230e1a8a6d6eda7cd6d3aef2d31f