Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dates: use default locale to display dates
Shovel uses `Intl.DateTimeFormat` to format times. This commmit removes the hardcoded `en-US` locale to use the locale defined by the user. This fixes dates using 12-hours time (AM/PM) instead of 24-hours time on user agents that are configured to use 24-hours times. It also affects the dates format (MM/DD/YYYY). Before: ``` From 7/20/2024, 11:17:59.638 PM to 7/20/2024, 11:17:59.936 PM, tick 557 ``` After (locale `en-GB`): ``` From 20/07/2024, 23:17:59.638 to 20/07/2024, 23:17:59.936, tick 557 ```
- Loading branch information