diff options
author | 2020-10-07 17:55:31 -0400 | |
---|---|---|
committer | 2020-10-07 17:55:31 -0400 | |
commit | 25bf4cff8c5362ff69b885d8222b45c8dc30db33 (patch) | |
tree | 23b86052ad02bbdeef7472cbb6365ff29a2dfbbf /source/features/user-local-time.tsx | |
parent | 50ef61d48f257b1b0abf94eda620e02455063471 (diff) | |
download | refined-github-25bf4cff8c5362ff69b885d8222b45c8dc30db33.tar.gz refined-github-25bf4cff8c5362ff69b885d8222b45c8dc30db33.tar.zst refined-github-25bf4cff8c5362ff69b885d8222b45c8dc30db33.zip |
Use system setting for `user-local-time` time formatting (#3627)
Diffstat (limited to '')
-rw-r--r-- | source/features/user-local-time.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/features/user-local-time.tsx b/source/features/user-local-time.tsx index bf4f7cb3..0e9642b7 100644 --- a/source/features/user-local-time.tsx +++ b/source/features/user-local-time.tsx @@ -17,10 +17,9 @@ interface Commit { sha: string; } -const timeFormatter = new Intl.DateTimeFormat('en-GB', { +const timeFormatter = new Intl.DateTimeFormat(undefined, { hour: 'numeric', - minute: 'numeric', - hour12: false + minute: 'numeric' }); async function loadCommitPatch(commitUrl: string): Promise<string> { |