DonJayamanne / gitHistoryVSCode

Git History for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory
MIT License
944 stars 150 forks source link

[BUG] Date format in Git file history shows as "M/dd/yyyy" and does not adopt to system settings #740

Open ozmium opened 1 year ago

ozmium commented 1 year ago

Describe the Bug

The date format used to display Git commit dates in the File History tab is shown as something like "5/11/2023". This is a very confusing and ambiguous format, which is only used in USA and almost no other countries. We cannot tell whether this means "5 November 2023" or 11 May 2023".

Steps To Reproduce

  1. Clone a Git repository
  2. Open the repo folder in Microsoft Visual Studio Code
  3. Open a file in the git project. Right click on the editor tab -> select "Git: File History View". Or run command "git: view history (git log)"

Actual Behavior

Expected Behavior

Environment

roblframpton commented 1 year ago

This appears to be a wider issue with all VSCode extensions, as this closed ticket suggests. I've opened a new ticket in the hope they will address it. In the meantime, I think a workaround in this extension should be possible?

RichardJECooke commented 1 year ago

Please can you just hardcode the date to a normal ISO format like YYYY-MM-DD, until localization customization is done? It's very weird to use this awful USA date format that makes no sense to anyone else in the world.