diff --git a/CHANGELOG.md b/CHANGELOG.md index 71fc15b28..33f3f842c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Changed - [SIL.TestUtilities] Made FluentAssertXml classes use "Assert.That" so they can work in clients that use NUnit 4. +- +### Fixed +- [SIL.Windows.Forms] Changed build date in SILAboutBox to be computed using the last write time instead of creation time. ## [15.0.0] - 2025-01-06 diff --git a/SIL.Windows.Forms/Miscellaneous/SILAboutBox.cs b/SIL.Windows.Forms/Miscellaneous/SILAboutBox.cs index 99bc650ff..973bed7a2 100644 --- a/SIL.Windows.Forms/Miscellaneous/SILAboutBox.cs +++ b/SIL.Windows.Forms/Miscellaneous/SILAboutBox.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2016-2024, SIL Global +// Copyright (c) 2016-2025, SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System; @@ -38,7 +38,7 @@ public partial class SILAboutBox : Form /// parts of the version number, i.e. "MajorVersion.MinorVersion.Build", /// true to display the full version number as found in Application.ProductVersion. /// Passing true is useful if you want to display, for example, the git revision of - /// the build. Typically this would be set in the AssemblyInformationalVersion. + /// the build. Typically, this would be set in the AssemblyInformationalVersion. /// If specified, allows caller to indicate particular SIL logo /// variant to display. By default, a variant is chosen at random. public SILAboutBox(string pathToAboutBoxHtml, bool useFullVersionNumber = false, @@ -161,7 +161,9 @@ private string GetBuiltOnDate() // Use UTC for calculation of build-on-date so that we get the same date regardless // of timezone setting. - return string.Format(LocalizationManager.GetString("AboutDialog.BuiltOnDate", "Built on {0}", "{0} is the date the application was built"), fi.CreationTimeUtc.ToString("dd-MMM-yyyy")); + return string.Format(LocalizationManager.GetString("AboutDialog.BuiltOnDate", + "Built on {0}", "{0} is the date the application was built"), + fi.LastWriteTimeUtc.ToString("dd-MMM-yyyy")); } private string GetShortVersionInfo() diff --git a/TestApps/SIL.Windows.Forms.TestApp/TestAppForm.cs b/TestApps/SIL.Windows.Forms.TestApp/TestAppForm.cs index 63d0b128d..a930fe6ff 100644 --- a/TestApps/SIL.Windows.Forms.TestApp/TestAppForm.cs +++ b/TestApps/SIL.Windows.Forms.TestApp/TestAppForm.cs @@ -152,7 +152,7 @@ private static void ShowSilAboutBox(XWebBrowser.BrowserType browserType, bool us { File.WriteAllText(tempfile.Path, @"" + - @"

Copyright 2024 SIL Global

" + + @"

Copyright 2025 SIL Global

" + @"

Testing the about box

"); var uri = new Uri(tempfile.Path); using (var dlg = new SILAboutBox(uri.AbsoluteUri, useFullVersionNumber))