We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c33628d commit 7d330a4Copy full SHA for 7d330a4
src/Listeners/Auth/UpdateUsersTimezone.php
@@ -52,7 +52,7 @@ public function handle($event)
52
53
if ($user->timezone != $geoip_info['timezone']) {
54
if (config('timezone.overwrite') == true || $user->timezone == null) {
55
- $user->timezone = $geoip_info['timezone'];
+ $user->timezone = $geoip_info['timezone'] ?? $geoip_info->time_zone['name'];
56
$user->save();
57
58
$this->notify($geoip_info);
@@ -103,8 +103,8 @@ private function notify(Location $geoip_info)
103
}
104
105
/**
106
- * @return mixed
107
- */
+ * @return mixed
+ */
108
private function getFromLookup()
109
{
110
$result = null;
0 commit comments