Fixed location data

This commit is contained in:
Eduard Urbach 2017-06-22 22:55:25 +02:00
parent 325d17c871
commit e9e6391e15

View File

@ -91,7 +91,7 @@ func updateUserInfo(ctx *aero.Context) {
user.Location.CountryName = newLocation.CountryName user.Location.CountryName = newLocation.CountryName
user.Location.CountryCode = newLocation.CountryCode user.Location.CountryCode = newLocation.CountryCode
user.Location.Latitude, _ = strconv.ParseFloat(newLocation.Latitude, 64) user.Location.Latitude, _ = strconv.ParseFloat(newLocation.Latitude, 64)
user.Location.Longitude, _ = strconv.ParseFloat(newLocation.Latitude, 64) user.Location.Longitude, _ = strconv.ParseFloat(newLocation.Longitude, 64)
user.Location.CityName = newLocation.CityName user.Location.CityName = newLocation.CityName
user.Location.RegionName = newLocation.RegionName user.Location.RegionName = newLocation.RegionName
user.Location.TimeZone = newLocation.TimeZone user.Location.TimeZone = newLocation.TimeZone