diff --git a/commands/convert-group/convertCommands.cs b/commands/convert-group/convertCommands.cs index ed41193..4975ffb 100644 --- a/commands/convert-group/convertCommands.cs +++ b/commands/convert-group/convertCommands.cs @@ -95,8 +95,8 @@ public async Task ConvertTime( { try { - if (!Enum.TryParse(sourceTimezoneStr, out var sourceTimezone) || - !Enum.TryParse(destinationTimezoneStr, out var destinationTimezone)) + if (!TimezoneExtensions.FromChoiceDisplay.TryGetValue(sourceTimezoneStr, out var sourceTimezone) || + !TimezoneExtensions.FromChoiceDisplay.TryGetValue(destinationTimezoneStr, out var destinationTimezone)) { await RespondAsync("❌ Invalid timezone selected.", ephemeral: true); return;