Skip to content

Commit ff3851e

Browse files
committed
Add hourCycle to Intl.DateTimeFormat
1 parent 8944a9f commit ff3851e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/LoggerWithoutCallSite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ export class LoggerWithoutCallSite {
524524
year: "numeric",
525525
month: "2-digit",
526526
day: "2-digit",
527-
hourCycle: 'h23',
527+
hourCycle: "h23",
528528
hour: "2-digit",
529529
minute: "2-digit",
530530
second: "2-digit",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"es2019",
77
"esnext.bigint",
88
"es2020.string",
9-
"es2020.symbol.wellknown"
9+
"es2020.symbol.wellknown",
10+
"es2020.intl"
1011
],
1112
"target": "es2019",
1213
"module": "commonjs",

0 commit comments

Comments
 (0)