Skip to content
Permalink
Browse files

- debugging DateTime issue

  • Loading branch information
cozy1 committed Oct 18, 2019
1 parent 0f68668 commit b161bb655acc97bcfa6f9e6979234815eb99e38b
Showing with 7 additions and 2 deletions.
  1. +1 −0 RocksmithToolkitLib/Properties/AssemblyInfo.cs
  2. +6 −2 RocksmithToolkitLib/ToolkitVersion.cs
@@ -2,6 +2,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;
using System;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@@ -82,10 +82,14 @@ public static string RSTKUpdaterVersion()

public static bool IsRSTKLibValid()
{
// DOS COPY command and CreationTime caveat
// always delete any existing copy of a file at a location before ever
// using DOS to copy the library to preserve the correct library creation date

// return false;
var rstkLibPath = typeof(RocksmithToolkitLib.ToolkitVersion).Assembly.Location;
var dtuLib = File.GetCreationTimeUtc(rstkLibPath);

var dtuLib = File.GetLastWriteTimeUtc(rstkLibPath);
// using UTC to avoid regional DateTime issues
DateTime dtuNow = DateTime.UtcNow;

0 comments on commit b161bb6

Please sign in to comment.
You can’t perform that action at this time.