summaryrefslogtreecommitdiff
path: root/source/features/user-local-time.tsx
diff options
context:
space:
mode:
authorGravatar yakov116 <16872793+yakov116@users.noreply.github.com> 2020-10-07 17:55:31 -0400
committerGravatar GitHub <noreply@github.com> 2020-10-07 17:55:31 -0400
commit25bf4cff8c5362ff69b885d8222b45c8dc30db33 (patch)
tree23b86052ad02bbdeef7472cbb6365ff29a2dfbbf /source/features/user-local-time.tsx
parent50ef61d48f257b1b0abf94eda620e02455063471 (diff)
downloadrefined-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.tsx5
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> {