diff --git a/installer.iss b/installer.iss index 3b53620..2bc5df1 100644 --- a/installer.iss +++ b/installer.iss @@ -2,7 +2,7 @@ ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "WinDynamicDesktop" -#define MyAppVersion "1.2" +#define MyAppVersion "1.2.1" #define MyAppPublisher "Timothy Johnson" #define MyAppURL "https://github.com/t1m0thyj/WinDynamicDesktop" #define MyAppExeName "WinDynamicDesktop.exe" diff --git a/src/Properties/AssemblyInfo.cs b/src/Properties/AssemblyInfo.cs index 7b47126..a84daba 100644 --- a/src/Properties/AssemblyInfo.cs +++ b/src/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.2.0")] +[assembly: AssemblyVersion("1.2.1")] //[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/SunriseSunset.cs b/src/SunriseSunset.cs index 1346e91..c35c789 100644 --- a/src/SunriseSunset.cs +++ b/src/SunriseSunset.cs @@ -3,6 +3,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; +using System.Globalization; using Innovative.SolarCalculator; namespace WinDynamicDesktop @@ -15,11 +16,13 @@ public class WeatherData class SunriseSunsetService { + private static CultureInfo cultureInfo = CultureInfo.GetCultureInfo("en-US"); + public static WeatherData GetWeatherData(string lat, string lon, string dateStr) { DateTime date = DateTime.Parse(dateStr); - double latitude = Double.Parse(lat); - double longitude = Double.Parse(lon); + double latitude = Double.Parse(lat, cultureInfo); + double longitude = Double.Parse(lon, cultureInfo); SolarTimes solarTimes = new SolarTimes(date, latitude, longitude);