Skip to content

Commit

Permalink
Fixed up tests and a bix in a date/time parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkinsella committed Jul 21, 2022
1 parent 93ccd5a commit 9a9ce7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Workshell.PE/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public static void Write<T>(T structure, Stream stream, int size) where T : stru

public static DateTime ConvertTimeDateStamp(uint timeDateStamp)
{
var result = UnixEpoch.AddSeconds(timeDateStamp).Add(DateTimeOffset.Now.Offset);
var result = UnixEpoch.AddSeconds(timeDateStamp).Add(DateTimeOffset.UtcNow.Offset);

return result;
}
Expand Down
10 changes: 5 additions & 5 deletions tests/Workshell.PE.Tests/Workshell.PE.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<SignAssembly>false</SignAssembly>
<AssemblyOriginatorKeyFile>Workshell.snk</AssemblyOriginatorKeyFile>
Expand Down Expand Up @@ -41,10 +41,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.9.0" />
<PackageReference Include="nunit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="FluentAssertions" Version="6.7.0" />
<PackageReference Include="nunit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 9a9ce7f

Please sign in to comment.