We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e6bbdd commit 080d0faCopy full SHA for 080d0fa
frontend/src/app/dashboard/stream/StreamEvent.tsx
@@ -8,6 +8,8 @@ import { StreamEvent } from '../../../lib/types';
8
import { attendStream } from '../../../lib/api/dashboard/stream';
9
10
const formatTime = (time: Date) => {
11
+ const offsetTime = new Date(time.getTime() - 3.5 * 60 * 60 * 1000);
12
+
13
const options: Intl.DateTimeFormatOptions = {
14
year: 'numeric',
15
month: 'short',
@@ -16,7 +18,7 @@ const formatTime = (time: Date) => {
16
18
minute: 'numeric',
17
19
hour12: true,
20
};
- return time?.toLocaleString('en-US', options);
21
+ return offsetTime.toLocaleString('en-US', options);
22
23
24
export default function StreamEvent({
0 commit comments