Skip to content

Commit 1241ce9

Browse files
authored
Fix date format to 'en-US' (#1741)
1 parent 21eabc2 commit 1241ce9

File tree

1 file changed

+2
-2
lines changed
  • extensions/ql-vscode/src/pure

1 file changed

+2
-2
lines changed

extensions/ql-vscode/src/pure/date.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
* Contains an assortment of helper constants and functions for working with dates.
33
*/
44

5-
const dateWithoutYearFormatter = new Intl.DateTimeFormat(undefined, {
5+
const dateWithoutYearFormatter = new Intl.DateTimeFormat('en-US', {
66
month: 'short',
77
day: 'numeric',
88
hour: 'numeric',
99
minute: '2-digit',
1010
});
1111

12-
const dateFormatter = new Intl.DateTimeFormat(undefined, {
12+
const dateFormatter = new Intl.DateTimeFormat('en-US', {
1313
year: 'numeric',
1414
month: 'short',
1515
day: 'numeric',

0 commit comments

Comments
 (0)