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

Absolute dates not always honored in GitLens Results explorer #384

Closed
jez9999 opened this Issue May 28, 2018 · 7 comments

Comments

Projects
None yet
2 participants
@jez9999

jez9999 commented May 28, 2018

In various places (for example, show commit details or blame annotations) GitLens shows vague relative dates for when a commit was made, like "9 months ago". I wish to get the exact date (and maybe time). Please add an option to make GitLens show exact dates/times instead.

@jez9999

This comment has been minimized.

jez9999 commented May 28, 2018

OK the settings already exist, here's how I got what I wanted (adding to User Settings):

	// Specifies how dates will be displayed by default
	"gitlens.defaultDateStyle": "absolute",

	// Specifies how absolute dates will be formatted by default
	// See https://momentjs.com/docs/#/displaying/format/ for valid formats
	"gitlens.defaultDateFormat": "YYYY-MM-DD",

@jez9999 jez9999 closed this May 28, 2018

@eamodio

This comment has been minimized.

Owner

eamodio commented May 28, 2018

Fyi these settings are easily configured via the GitLens settings editor using the GitLens: Open Settings command from the command palette

@jez9999

This comment has been minimized.

jez9999 commented May 28, 2018

Unfortunately when I change settings on that screen it screws up the format of my user settings file and removes comments.

@jez9999

This comment has been minimized.

jez9999 commented May 29, 2018

I'm reopening this, because I've just realized that vague relative dates (eg. "2 months ago") are shown in my Gitlens results panel on the left, for example if I click "Show commit details", then "go back", then "show in results", the commit date shown in the results pane is a relative date.

@jez9999

This comment has been minimized.

jez9999 commented May 29, 2018

Reopening.

@jez9999 jez9999 reopened this May 29, 2018

@eamodio eamodio self-assigned this May 30, 2018

@eamodio eamodio added the bug label May 30, 2018

@eamodio eamodio changed the title from Option to show exact dates? to Absolute date not always honored in GitLens Results explorer May 30, 2018

@eamodio eamodio added this to the Soon™ milestone May 30, 2018

@eamodio eamodio changed the title from Absolute date not always honored in GitLens Results explorer to Absolute dates not always honored in GitLens Results explorer May 30, 2018

@eamodio

This comment has been minimized.

Owner

eamodio commented May 30, 2018

@jez9999 Can you provide more details on the issue where updating the settings via the GitLens settings editor removes comments / screws up the formatting? I'd like to open an issue with vscode about it, because GitLens it just using the built-in configuration apis to update it settings.

@jez9999

This comment has been minimized.

jez9999 commented May 30, 2018

I can't seem to reproduce it right now. What I'm sure happened was it removed the comments I had next to the setting and put it at the end of the file but right now it works OK.

@eamodio eamodio closed this in 4dc5ce9 May 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment