Closed AEK-BKF closed 2 years ago
Hi @AEK-BKF
Ahhhh, OK. I understand. I thought that torann/geoip
would standardize the returned data so we wouldn't see this issue.
I guess we could put something like
$user->timezone = $geoip_info['timezone'] ?? $geoip_info->time_zone['name'];
If you can test and submit a PR for this I will accept it, thanks.
@AEK-BKF are you still having this issue? Any chance you could PR the solution?
Hey @jamesmills I created a PR https://github.com/jamesmills/laravel-timezone/pull/76
Hi,
Thanks for this nice package, I've integrated it on live server, and I'm using ipgeolocation service in geoip package config. So, I found this bug here :
This :
$geoip_info['timezone']
returns Null Here dd($geoip_info) (See Attached) So to fix it : ` $user->timezone = $geoip_info->time_zone['name'];Thanks.