File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 22; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33
44#define MyAppName " WinDynamicDesktop"
5- #define MyAppVersion " 1.2"
5+ #define MyAppVersion " 1.2.1 "
66#define MyAppPublisher " Timothy Johnson"
77#define MyAppURL " https://github.com/t1m0thyj/WinDynamicDesktop"
88#define MyAppExeName " WinDynamicDesktop.exe"
Original file line number Diff line number Diff line change 3232// You can specify all the values or you can default the Build and Revision Numbers
3333// by using the '*' as shown below:
3434// [assembly: AssemblyVersion("1.0.*")]
35- [ assembly: AssemblyVersion ( "1.2.0 " ) ]
35+ [ assembly: AssemblyVersion ( "1.2.1 " ) ]
3636//[assembly: AssemblyFileVersion("1.0.0.0")]
Original file line number Diff line number Diff line change 33using System . Linq ;
44using System . Text ;
55using System . Threading . Tasks ;
6+ using System . Globalization ;
67using Innovative . SolarCalculator ;
78
89namespace WinDynamicDesktop
@@ -15,11 +16,13 @@ public class WeatherData
1516
1617 class SunriseSunsetService
1718 {
19+ private static CultureInfo cultureInfo = CultureInfo . GetCultureInfo ( "en-US" ) ;
20+
1821 public static WeatherData GetWeatherData ( string lat , string lon , string dateStr )
1922 {
2023 DateTime date = DateTime . Parse ( dateStr ) ;
21- double latitude = Double . Parse ( lat ) ;
22- double longitude = Double . Parse ( lon ) ;
24+ double latitude = Double . Parse ( lat , cultureInfo ) ;
25+ double longitude = Double . Parse ( lon , cultureInfo ) ;
2326
2427 SolarTimes solarTimes = new SolarTimes ( date , latitude , longitude ) ;
2528
You can’t perform that action at this time.
0 commit comments