From 74840e0c32668d96d55f533c6e697505a65e16ac Mon Sep 17 00:00:00 2001 From: Nikita Grebenyuk Date: Sat, 28 May 2022 03:16:39 +1000 Subject: [PATCH] ~ Fix build date bug --- WolvenKit/Forms/MVVM/frmMain.cs | 3 ++- WolvenKit/WolvenKit.csproj | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/WolvenKit/Forms/MVVM/frmMain.cs b/WolvenKit/Forms/MVVM/frmMain.cs index 8372a0e6..51fc8460 100644 --- a/WolvenKit/Forms/MVVM/frmMain.cs +++ b/WolvenKit/Forms/MVVM/frmMain.cs @@ -773,7 +773,8 @@ public override bool Equals(object obj) private void UpdateTitle() { - wkitVersionToolStripLabel.Text = $"v{Version}: {Assembly.GetExecutingAssembly().GetLinkerTime().ToString("yyyy MMMM dd")}"; + var compileTime = new DateTime(Builtin.CompileTime, DateTimeKind.Utc); + wkitVersionToolStripLabel.Text = $"v{Version}: {compileTime.ToString("yyyy MMMM dd")}"; modNameToolStripLabel.Text = ActiveMod != null ? ActiveMod.Name : "No Mod Loaded!"; diff --git a/WolvenKit/WolvenKit.csproj b/WolvenKit/WolvenKit.csproj index 1849427e..ccc740b8 100644 --- a/WolvenKit/WolvenKit.csproj +++ b/WolvenKit/WolvenKit.csproj @@ -121,6 +121,12 @@ + + + + + +