Skip to content

Commit

Permalink
Added InvariantCulture to Convert.ToDouble
Browse files Browse the repository at this point in the history
  • Loading branch information
juliankay committed Jul 23, 2016
1 parent 3a1bea0 commit bf801d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/FakeGPS.Common/GeolocationHelper.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace FakeGPS.Common
{
using System;
using System.Text.RegularExpressions;

using System.Device.Location;
using System.Globalization;
using System.Text.RegularExpressions;
using System.Threading;

/// <summary>
Expand Down Expand Up @@ -55,8 +55,8 @@ public static LatLong ToLatLong(string latLong)

return new LatLong()
{
Latitude = Convert.ToDouble(splits[0]),
Longitude = Convert.ToDouble(splits[1])
Latitude = Convert.ToDouble(splits[0], CultureInfo.InvariantCulture),
Longitude = Convert.ToDouble(splits[1], CultureInfo.InvariantCulture)
};
}
catch (Exception ex)
Expand Down

0 comments on commit bf801d2

Please sign in to comment.