Skip to content

Commit

Permalink
Merge pull request #203 from rianjs/LocationInvariantGeographicCoordi…
Browse files Browse the repository at this point in the history
…nates

Culture invariant geographic coordinates #202
  • Loading branch information
rianjs authored Dec 15, 2016
2 parents 095f9bc + b6ac847 commit fc90856
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion v2/Ical.Net.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Ical.Net</id>
<version>2.2.22</version>
<version>2.2.23</version>
<title>Ical.Net</title>
<authors>Rian Stockbower, Douglas Day, M. David Peterson</authors>
<owners>Rian Stockbower</owners>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public override string SerializeToString(object obj)
return null;
}

var value = g.Latitude.ToString("0.000000") + ";" + g.Longitude.ToString("0.000000");
var value = g.Latitude.ToString("0.000000", CultureInfo.InvariantCulture.NumberFormat) + ";"
+ g.Longitude.ToString("0.000000", CultureInfo.InvariantCulture.NumberFormat);
return Encode(g, value);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public override string SerializeToString(object obj)
return null;
}

var value = g.Latitude.ToString("0.000000") + ";" + g.Longitude.ToString("0.000000");
var value = g.Latitude.ToString("0.000000", CultureInfo.InvariantCulture.NumberFormat) + ";"
+ g.Longitude.ToString("0.000000", CultureInfo.InvariantCulture.NumberFormat);
return Encode(g, value);
}

Expand Down

0 comments on commit fc90856

Please sign in to comment.