country($userSelectedCountry); // Get the time zone from the country data $timeZone = $record->location->timeZone; return $timeZone; } catch (\Exception $e) { // Handle exceptions if the country code or IP address is not found return 'UTC'; // Default to UTC if not found } }