We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4a8e0c commit 533293bCopy full SHA for 533293b
ts/components/conversation/message/message-item/DateBreak.tsx
@@ -1,6 +1,7 @@
1
import moment from 'moment';
2
import React from 'react';
3
import styled from 'styled-components';
4
+import { sync as osLocaleSync } from 'os-locale';
5
6
const DateBreakContainer = styled.div``;
7
@@ -26,7 +27,7 @@ export const MessageDateBreak = (props: { timestamp: number; messageId: string }
26
27
sameElse: 'LL',
28
}
29
} else {
- moment.locale('en-gb'); // for 24-hour clock
30
+ moment.locale(osLocaleSync().replace(/_/g, '-'));
31
dateFormat = {
32
sameElse: 'llll',
33
0 commit comments