You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/web_src/js
silverwind f86e9a0367 Set user's 24h preference from their current OS locale (#29651)
Fixes: https://github.com/go-gitea/gitea/issues/28371

Fixed by using a JS solution that formats according to `lang`, but alters the 24h format setting as per user's locale. This will work for all tooltips:

<img width="243" alt="Screenshot 2024-03-07 at 23 03 35" src="https://github.com/go-gitea/gitea/assets/115237/6d16c71c-6786-4eda-8cdc-50ec68ba62c6">
<img width="250" alt="Screenshot 2024-03-07 at 23 03 17" src="https://github.com/go-gitea/gitea/assets/115237/4e26bbb7-12df-4b81-bd37-14705e87e8f7">
<img width="310" alt="Screenshot 2024-03-07 at 23 14 34" src="https://github.com/go-gitea/gitea/assets/115237/1ef599f0-6401-4e19-b1da-59cdfc09b0f6">

I think there is only one other place in the UI where we render such absolute dates, which is in the actions view and which I've also fixed:

<img width="275" alt="Screenshot 2024-03-07 at 23 04 00" src="https://github.com/go-gitea/gitea/assets/115237/df0fbe1f-96ee-4338-ab5e-2b10e215005d">
11 months ago
..
components Set user's 24h preference from their current OS locale (#29651) 11 months ago
features Remove jQuery AJAX from the repo editor (#29636) 11 months ago
markup Replace more `gt-` with `tw-`, update frontend docs (#29595) 11 months ago
modules Set user's 24h preference from their current OS locale (#29651) 11 months ago
render Use vitest globals (#27102) 1 year ago
standalone Add toasts to UI (#25449) 2 years ago
utils Set user's 24h preference from their current OS locale (#29651) 11 months ago
vendor Vendor `jquery.are-you-sure` with strict mode fixes (#26901) 1 year ago
webcomponents Fix URL calculation in clone input box (#29470) 11 months ago
bootstrap.js Fix/Improve `processWindowErrorEvent` (#29407) 11 months ago
bootstrap.test.js Avoid duplicate JS error messages on UI (#28873) 1 year ago
htmx.js Auto-update the system status in admin dashboard (#29163) 12 months ago
index.js Filter Repositories by type (#29231) 11 months ago
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 5 years ago
svg.js Artifact deletion in actions ui (#27172) 12 months ago
svg.test.js Use vitest globals (#27102) 1 year ago
utils.js enforce maxlength in frontend (#29389) 12 months ago
utils.test.js Use vitest globals (#27102) 1 year ago
vitest.setup.js Move vitest setup file to root (#29097) 1 year ago