vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

"Allow relative date formatting" / gitlens.defaultDateStyle not working

Open drujd opened this issue 1 year ago • 2 comments

Description

The "Allow relative date formatting" checkbox / gitlens.defaultDateStyle setting does not seem to do anything at all. I have tried both current release and prerelease versions of GitLens and regardless of version, dates are always displayed in the relative format in both commit graph and commit detail with no option to change that.

GitLens Version

14.8.2 and 2024.2.1704

VS Code Version

Version: 1.86.2 Commit: 903b1e9d8990623e3d7da1df3d33db3e42d80eda Date: 2024-02-13T19:41:37.860Z Electron: 27.2.3 ElectronBuildId: 26908389 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Linux x64 6.7.4-arch1-1-00004-g979c5aee1211-dirty

Git Version

git version 2.43.2

Logs, Screenshots, Screen Captures, etc

No response

drujd avatar Feb 17 '24 15:02 drujd

The Commit Graph has its own date style setting gitlens.graph.dateStyle to allow you to control the behavior there. In tomorrow's pre-release I've changed the default of that setting to fallback to gitlens.defaultDateStyle if not specifically specified.

As for the Commit Details view -- we are not currently honoring that setting and should be.

eamodio avatar Feb 17 '24 20:02 eamodio

And where IS it used, then?

drujd avatar Feb 17 '24 20:02 drujd

Verified in the 14.9 release.

axosoft-ramint avatar Mar 07 '24 18:03 axosoft-ramint

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Apr 07 '24 05:04 github-actions[bot]