Skip to content

Commit 7d330a4

Browse files
authored
Fix #52 (#76)
1 parent c33628d commit 7d330a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Listeners/Auth/UpdateUsersTimezone.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function handle($event)
5252

5353
if ($user->timezone != $geoip_info['timezone']) {
5454
if (config('timezone.overwrite') == true || $user->timezone == null) {
55-
$user->timezone = $geoip_info['timezone'];
55+
$user->timezone = $geoip_info['timezone'] ?? $geoip_info->time_zone['name'];
5656
$user->save();
5757

5858
$this->notify($geoip_info);
@@ -103,8 +103,8 @@ private function notify(Location $geoip_info)
103103
}
104104

105105
/**
106-
* @return mixed
107-
*/
106+
* @return mixed
107+
*/
108108
private function getFromLookup()
109109
{
110110
$result = null;

0 commit comments

Comments
 (0)