Skip to content

Commit f14cb71

Browse files
committed
fix: remove outdated comments
1 parent 7bca0fb commit f14cb71

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/components/Standup.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
11
import { useEffect, useState } from 'react';
22

33
const getClosestTimeZone = () => {
4-
// target 6am
5-
6-
// go through all timezones
7-
// get current time in that timezone
8-
// get difference between current time and 6am
9-
// return the timezone with the smallest difference
10-
11-
// get current time
124
const currentTime = new Date();
135

14-
// get the time in each timezone
156
const aryIannaTimeZones = Intl.supportedValuesOf('timeZone');
167

178
let closestBefore6am = 0;
@@ -23,7 +14,6 @@ const getClosestTimeZone = () => {
2314
}[] = [];
2415

2516
aryIannaTimeZones.forEach((timeZone) => {
26-
// get current hour and minute in this timezone
2717
const options: Intl.DateTimeFormatOptions = {
2818
timeZone,
2919
hour: 'numeric',

0 commit comments

Comments
 (0)