Skip to content

Commit

Permalink
Merge pull request #1288 from peter-abah/fix/language-regions-settings
Browse files Browse the repository at this point in the history
fix: fix multiple timezones selected simultaenously
  • Loading branch information
incredible-phoenix246 authored Aug 24, 2024
2 parents d053560 + ac44fc3 commit 7577689
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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("_", " ")}`,
};
});
Expand Down

0 comments on commit 7577689

Please sign in to comment.