Skip to content

Commit e8241a7

Browse files
committed
fix UTC time change in front
1 parent bdaf9a9 commit e8241a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: frontend/src/ui/hooks/timer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function useTimer() {
1111
useEffect(() => {
1212
const utcDate = new Date();
1313
const tzDate = new Date(
14-
utcDate.toLocaleString('en-US', { timeZone: 'Asia/Tehran' }),
14+
utcDate.toLocaleString('en-US', { timeZone: 'Asia/Tehran' }),
1515
);
1616
const offset = utcDate.getTime() - tzDate.getTime();
1717

0 commit comments

Comments
 (0)