Mac chooses wrong date/time which is 7 hours ahead of the timezone chosen
Check in System Preferences → Region &amp; languages to see if "Region" is set correctly. 



When the device has wrong date/ time, the location will also not get updated. (I don't know the correct reason, I've just seen this a few times.)

So the time will also be wrong since correct location has not been determined.

So to break the loop, you need to enter correct time at least once. Then verify that you can connect to internet in Safari and then set date/ time to auto.