From a9356624b44ed1c4b6ba79235766cd2a00007abc Mon Sep 17 00:00:00 2001 From: Peter Abah Date: Fri, 23 Aug 2024 15:30:25 +0100 Subject: [PATCH] fix: fix multiple timezones selected simultaenously --- .../admin/(settings)/settings/language-and-region/page.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/dashboard/(admin)/admin/(settings)/settings/language-and-region/page.tsx b/src/app/dashboard/(admin)/admin/(settings)/settings/language-and-region/page.tsx index 7c23e7cf6..40383c85b 100644 --- a/src/app/dashboard/(admin)/admin/(settings)/settings/language-and-region/page.tsx +++ b/src/app/dashboard/(admin)/admin/(settings)/settings/language-and-region/page.tsx @@ -34,11 +34,8 @@ const formatTimeZone = () => { const sign = offset >= 0 ? "+" : "-"; const formattedOffset = `UTC${sign}${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`; - // Create a simplified value for the timezone (e.g., "utc+0" or "utc-8") - const value = `utc${sign}${hours}`; - return { - value: value, + value: `(${formattedOffset}) ${tz.replace("_", " ")}`, label: `(${formattedOffset}) ${tz.replace("_", " ")}`, }; });