Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datetime not displayed for commits (relative date is limited in helpfulness) #3999

Closed
spencer-microsoft opened this issue Feb 13, 2018 · 7 comments

Comments

@spencer-microsoft
Copy link

Description

Having the datetime of the commit in the History is really helpful, but in recent versions, it only shows the relative time, and it's in the left pane, which gets truncated if the user's name is long. It would be incredibly helpful to have the datetime shown in the main window with the commit ("December 17th 2017 at 3:11pm") rather than in the history pane as a relative date ("a week ago", "4 minutes ago", etc).

Version

GitHub Desktop version: 1.0.13

OS version: 10.13.3 (17D47)

Steps to Reproduce

No specific steps - just a general feature request

@iAmWillShepherd
Copy link
Contributor

Thanks for taking the time to open an issue! 🙇

I can definitely see how knowing the exact date and time a commit was created could be useful 👍

@shiftkey
Copy link
Member

shiftkey commented Feb 14, 2018

@spencer-microsoft thanks for the feedback.

For reference, the full timestamp is available by hovering on the tooltip in the history panel:

We're always striving to be consistent with GitHub The Website, and I think we've overlooked the fact that they also have the relative time in the commit details (and the tooltip shows the absolute time):

I think we should do the same thing in the commit details in Desktop:

We have a component for rendering relative time already, and the commit authors are defined here, if someone is interested in adding in support:

<li
className="commit-summary-meta-item without-truncation"
aria-label="Author"
>
<AvatarStack users={this.state.avatarUsers} />
<CommitAttribution
gitHubRepository={this.props.repository.gitHubRepository}
commit={this.props.commit}
/>
</li>

@shiftkey shiftkey added the help wanted Issues marked as ideal for external contributors label Feb 14, 2018
@niik
Copy link
Member

niik commented Feb 16, 2018

Thanks for taking the time to contribute @spencer-microsoft!

Using relative time stamps is a conscious design decision. As @shiftkey pointed out you can get to the exact date by hovering. Relative times are time zone independent, quite compact and doesn't require regional formatting (which is troublesome for us at the moment, see #1257 (comment)

I don't foresee us changing this any time soon so I'm going to close this issue out but we'd welcome a new issue to discuss whether also including the date in the commit details view would make sense. With the addition of co-authors and the redesigned commit list items in the history tab we should revisit that.

cc @donokuda

@niik niik closed this as completed Feb 16, 2018
@niik niik removed enhancement help wanted Issues marked as ideal for external contributors labels Feb 16, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 18, 2018
@desktop desktop unlocked this conversation Sep 27, 2018
@maddes-b
Copy link

+1 for making this an option. "1h ago" is not precise (can be anything from 60 to 119 minutes ago), just give admins all information so they can work without hassle.

@RobertKrawitz
Copy link

+1 for making this an option, again. I would be fine with (in fact, I'd prefer) displaying UTC dates and times in ISO 8601 format, which have no timezone issues or regional formatting problems. I want something efficient, not "friendly".

@zsbee
Copy link

zsbee commented Feb 15, 2023

+1, Last Week / 3 weeks ago is really vague, I would be totally happy with absolute local dates. (let me care about timezones myself if it affects my team). Sometimes you need to collect a timeline for a postmortem and this makes it a lot harder than it should be.

@RobertKrawitz
Copy link

I don't understand the argument about it being a locale issue if the time can be displayed by hover. The tooltip clearly can render the date, so why can't it be rendered in other contexts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants