File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed
Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -141,17 +141,19 @@ public static Season CurrentSeasonData
141141 DateTimeOffset today = DateTimeOffset . Now . ToLocalTime ( ) . Date ;
142142
143143 int remainingDays = ( endDate - today ) . Days ;
144+ if ( ( endDate - today ) . Hours > 0 ) { remainingDays += 1 ; }
144145 if ( remainingDays < 0 ) remainingDays = 0 ;
145146
146147 return remainingDays ;
147148 }
148149
149150 public static int GetDuration ( string sUUID )
150151 {
151- DateTimeOffset endDate = DateTimeOffset . Parse ( Data . Seasons . Find ( s => s . UUID == sUUID ) . EndDate ) . ToLocalTime ( ) ;
152+ DateTimeOffset endDate = DateTimeOffset . Parse ( Data . Seasons . Find ( s => s . UUID == sUUID ) . EndDate ) . ToLocalTime ( ) . Date ;
152153 DateTimeOffset startDate = DateTimeOffset . FromUnixTimeSeconds ( Data . Seasons . Find ( s => s . UUID == sUUID ) . History . First ( ) . Time ) . ToLocalTime ( ) . Date ;
153154
154155 int duration = ( endDate - startDate ) . Days ;
156+ if ( ( endDate - startDate ) . Hours > 0 ) { duration += 1 ; }
155157 if ( duration < 0 ) duration = 0 ;
156158
157159 return duration ;
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >WinExe</OutputType >
5- <TargetFramework >net5 .0-windows10.0.20348 .0</TargetFramework >
5+ <TargetFramework >net6 .0-windows10.0.22000 .0</TargetFramework >
66 <UseWPF >true</UseWPF >
7- <ApplicationIcon >P:\Visual Studio\VexTrack\VexTrack\ Images\VexTrack.ico</ApplicationIcon >
8- <Version >1.7 </Version >
7+ <ApplicationIcon >Images\VexTrack.ico</ApplicationIcon >
8+ <Version >1.87 </Version >
99 <Authors >BitTim</Authors >
1010 <Description />
1111 <PackageProjectUrl >https://github.com/BitTim/VexTrack</PackageProjectUrl >
12- <PackageIcon >VexTrack .png</PackageIcon >
12+ <PackageIcon >VexTrack_128 .png</PackageIcon >
1313 <PackageIconUrl />
1414 <PackageLicenseFile >LICENSE</PackageLicenseFile >
1515 <RepositoryUrl >https://github.com/BitTim/VexTrack</RepositoryUrl >
1919 </PropertyGroup >
2020
2121 <ItemGroup >
22- <None Remove =" Images\VexTrack_128.png" />
2322 <None Remove =" Images\VexTrack_64.png" />
2423 </ItemGroup >
2524
25+ <ItemGroup >
26+ <Content Include =" Images\VexTrack.ico" />
27+ </ItemGroup >
28+
2629 <ItemGroup >
2730 <Folder Include =" Fonts\" />
2831 </ItemGroup >
5659 </ItemGroup >
5760
5861 <ItemGroup >
62+ <None Update =" Images\VexTrack_128.png" >
63+ <Pack >True</Pack >
64+ <PackagePath >\</PackagePath >
65+ </None >
5966 <None Update =" Properties\Settings.settings" >
6067 <Generator >SettingsSingleFileGenerator</Generator >
6168 <LastGenOutput >Settings.Designer.cs</LastGenOutput >
You can’t perform that action at this time.
0 commit comments