Scheduling infrastructure for absolutely everyone.
fix: timezone-dropdown (#23469)
Hemant M Mehta5ebd33576a8f
diff --git a/packages/lib/timezone.ts b/packages/lib/timezone.tsindex 3c74df82738..9fd3eaac132 100644--- a/packages/lib/timezone.ts+++ b/packages/lib/timezone.ts@@ -28,7 +28,7 @@ const formatOffset = (offset: string) =>offset.replace(/^([-+])(0)(\d):00$/, (_, sign, _zero, hour) => `${sign}${hour}:00`);export const handleOptionLabel = (option: ITimezoneOption, timezones: Timezones) => {- const offsetUnit = option.label.split("-")[0].substring(1);+ const offsetUnit = option.label.split(/[-+]/)[0].substring(1);const cityName = option.label.split(") ")[1];const timezoneValue = ` ${offsetUnit} ${formatOffset(dayjs.tz(undefined, option.value).format("Z"))}`;