0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 22:44:30 +01:00
gitea/web_src/js/components
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
..
.eslintrc.yaml Implement contributors graph (#27882) 2024-02-15 23:21:13 +01:00
ActionRunStatus.vue Reorder blocks in vue SFCs (#26874) 2023-09-02 14:59:07 +00:00
ActivityHeatmap.vue Reorder blocks in vue SFCs (#26874) 2023-09-02 14:59:07 +00:00
ContextPopup.vue Remove jQuery from the issue reference context popup (#29367) 2024-02-24 13:03:53 +01:00
DashboardRepoList.vue Update JS dependencies (#27922) 2023-11-06 21:14:32 +00:00
DiffCommitSelector.vue Add global setting how timestamps should be rendered (#28657) 2024-01-02 09:25:30 +08:00
DiffFileList.vue Fix review UI (#27322) 2023-09-28 10:00:26 +00:00
DiffFileTree.vue Improve diff tree spacing (#27714) 2023-10-21 10:38:19 +00:00
DiffFileTreeItem.vue Add border to file tree 'sub-items' and add padding to 'item-file' (#27593) 2023-10-25 18:00:53 +08:00
PullRequestMergeForm.vue Modernize merge button (#28140) 2024-01-15 00:00:47 +02:00
RepoActionView.vue Set user's 24h preference from their current OS locale (#29651) 2024-03-08 16:07:56 +08:00
RepoActivityTopAuthors.vue Reorder blocks in vue SFCs (#26874) 2023-09-02 14:59:07 +00:00
RepoBranchTagSelector.vue Replace some gt- classes with tw- (#29570) 2024-03-04 03:33:20 +00:00
RepoCodeFrequency.vue Implement code frequency graph (#29191) 2024-02-23 23:41:24 +00:00
RepoContributors.vue Fix contributor graphs mobile layout and responsiveness (#29597) 2024-03-05 14:21:52 +00:00
RepoRecentCommits.vue Implement recent commits graph (#29210) 2024-02-24 10:22:51 +00:00
ScopedAccessTokenSelector.vue Reorder blocks in vue SFCs (#26874) 2023-09-02 14:59:07 +00:00