Skip to content

Commit 3324721

Browse files
committed
Make live timestamp hydration-safe
1 parent 1cae7c6 commit 3324721

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

freebuff/web/src/app/live/live-client.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,12 @@ function countryName(code: string): string {
6565
}
6666

6767
function formattedTime(iso: string): string {
68-
return new Intl.DateTimeFormat(undefined, {
68+
return new Intl.DateTimeFormat('en-US', {
6969
hour: 'numeric',
7070
minute: '2-digit',
7171
second: '2-digit',
72+
timeZone: 'UTC',
73+
timeZoneName: 'short',
7274
}).format(new Date(iso))
7375
}
7476

0 commit comments

Comments
 (0)