setTimezone(event.currentTarget.value)}
options={timezones}
/>
{/* eslint-disable-next-line */}
{event?.timezone && event.timezone !== timezone && This event was created in the timezone {{timezone: event.timezone}}. {
e.preventDefault();
setTimezone(event.timezone);
}}>Click here to use it.
}
{((
Intl.DateTimeFormat().resolvedOptions().timeZone !== timezone
&& (event?.timezone && event.timezone !== Intl.DateTimeFormat().resolvedOptions().timeZone)
) || (
event?.timezone === undefined
&& Intl.DateTimeFormat().resolvedOptions().timeZone !== timezone
)) && (
/* eslint-disable-next-line */
Your local timezone is detected to be {{timezone: Intl.DateTimeFormat().resolvedOptions().timeZone}}. {
e.preventDefault();
setTimezone(Intl.DateTimeFormat().resolvedOptions().timeZone);
}}>Click here to use it.
)}