Skip to content

Commit 54da28b

Browse files
committed
feat: improve types
1 parent a98a4f1 commit 54da28b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/standup.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ const getClosestTimeZone = () => {
1919

2020
aryIannaTimeZones.forEach((timeZone) => {
2121
// get current hour and minute in this timezone
22-
const options = {
22+
const options: Intl.DateTimeFormatOptions = {
2323
timeZone,
24-
hour: 'numeric' as const,
25-
minute: 'numeric' as const,
24+
hour: 'numeric',
25+
minute: 'numeric',
2626
hour12: false,
2727
};
2828
const formatter = new Intl.DateTimeFormat([], options);

0 commit comments

Comments
 (0)