Open ozmium opened 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?
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.
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
Actual Behavior
Expected Behavior
The date format used in the history view should follow the system settings. For example, it should display as "11 May 2023" if that was set in the Language And Region system preferences.
If the system date format cannot be retrieved, then an unambiguous and clearer default format should be used which uses a word for the month instead of all numbers. Examples are: "May 11, 2023" or "11 May 2023". Formats like "5/11/2023" shold be avoided.
There should be a configurable setting in the extension for the user to change the date format, using up to 5 different options:
The configuration option is particularly important, because it seems like there is a bug in Electron where it doesn't follow the system settings for
new Date().toLocaleDateString()
. See: https://github.com/microsoft/vscode/issues/56995 . So the user would need an option to override the bug.Environment