diff --git a/SolarPower/Quartz/Jobs/CalcPowerStationJob.cs b/SolarPower/Quartz/Jobs/CalcPowerStationJob.cs index 3fb142b..31cfd0b 100644 --- a/SolarPower/Quartz/Jobs/CalcPowerStationJob.cs +++ b/SolarPower/Quartz/Jobs/CalcPowerStationJob.cs @@ -636,8 +636,8 @@ namespace SolarPower.Quartz.Jobs if (powerStation.Coordinate != null) { var powerLocation = powerStation.Coordinate.Split(','); - double p1 = Convert.ToDouble(powerLocation[0]); - double p2 = Convert.ToDouble(powerLocation[1]); + double p1 = Convert.ToDouble(powerLocation[0].Replace("°", string.Empty)); + double p2 = Convert.ToDouble(powerLocation[1].Replace("°", string.Empty)); double dLat = Convert.ToDouble(Location.Lat); double dLon = Convert.ToDouble(Location.Lon); double x = Math.Pow(p1 - dLat, 2) ;