diff --git a/main.ts b/main.ts index c374c25..48b875b 100644 --- a/main.ts +++ b/main.ts @@ -324,8 +324,7 @@ class TimestampModal extends Modal { timezone.onchange = (ev: Event) => { const offset = (ev.target as HTMLInputElement).value; - - let date = moment.tz(input.value, moment.ISO_8601, offset) + const date = moment.tz(input.value, moment.ISO_8601, offset) setClickEvents(date); } @@ -404,7 +403,7 @@ class TimestampModal extends Modal { input.onchange = (ev: Event) => { const value = (ev.target as HTMLInputElement).value; const offset = timezone.value; - let date = moment.tz(value, moment.ISO_8601, offset) + const date = moment.tz(value, moment.ISO_8601, offset) setClickEvents(date); }