0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-28 14:58:09 +01:00
gitea/web_src/js/modules
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">
2024-03-08 16:07:56 +08:00
..
fomantic Move some JS code from fomantic.js to standalone files (#27994) 2023-11-12 07:15:00 +00:00
dirauto.js Avoid showing unnecessary JS errors when there are elements with different origin on the page (#29081) 2024-02-08 02:42:18 +00:00
fetch.js Refactor request function (#29187) 2024-02-16 13:27:00 +00:00
fetch.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
fomantic.js Replace some gt- classes with tw- (#29570) 2024-03-04 03:33:20 +00:00
sortable.js Import sortablejs only once (#25936) 2023-07-17 18:06:37 +00:00
stores.js Refactor diffFileInfo / DiffTreeStore (#24998) 2023-05-30 18:53:15 +08:00
tippy.js Set user's 24h preference from their current OS locale (#29651) 2024-03-08 16:07:56 +08:00
toast.js Make PR form use toast to show error message (#29545) 2024-03-02 15:05:07 +00:00
toast.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00