Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes incorrect property access on MaxMind driver when passing off in… #161

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Conversation

craigpaul
Copy link

Summary:

This pull request fixes #160, where the timezone field in the MaxMind driver gets nullified during the processing of the IP due to an underscore mismatch in property naming.

Changes Made:

Updated the MaxMind driver to access the correct timezone field, aligning it with the naming convention used in the Fluent class.

Updated corresponding tests to ensure the proper functioning of the updated driver.

…formation from the Fluent object to the Position object
@stevebauman stevebauman merged commit b9cadaf into stevebauman:master Jan 29, 2024
1 of 7 checks passed
@stevebauman
Copy link
Owner

Awesome thanks @craigpaul! Appreciate the PR 🙏

I've just released v7.1.4 with this patch.

@@ -92,7 +92,7 @@ protected function hydrate(Position $position, Fluent $location): Position
$position->cityName = $location->city;
$position->postalCode = $location->postal;
$position->metroCode = $location->metro_code;
$position->timezone = $location->time_zone;
$position->timezone = $location->timezone;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing timezone information when using the MaxMind driver
3 participants