Skip to content

Commit 54b0863

Browse files
authored
fix(logger): set hourCycle to h23 when tz is not UTC (#4102)
1 parent 21d9e3f commit 54b0863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/logger/src/formatter/LogFormatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,13 @@ abstract class LogFormatter {
200200
: 'UTC';
201201

202202
return new Intl.DateTimeFormat('en', {
203+
hourCycle: 'h23',
203204
year: 'numeric',
204205
month: twoDigitFormatOption,
205206
day: twoDigitFormatOption,
206207
hour: twoDigitFormatOption,
207208
minute: twoDigitFormatOption,
208209
second: twoDigitFormatOption,
209-
hour12: false,
210210
timeZone: validTimeZone,
211211
});
212212
};

0 commit comments

Comments
 (0)