From c11c0fa8920c08dcf5fd0eb9dd017c8737beb106 Mon Sep 17 00:00:00 2001 From: gyk <147011991+gyk4j@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:26:49 +0800 Subject: [PATCH] Fix default custom DateTime value bug (#228) --- Wreck/IO/Reader/User/CustomDateTimeReader.cs | 2 +- WreckGui/Model/GuiModel.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Wreck/IO/Reader/User/CustomDateTimeReader.cs b/Wreck/IO/Reader/User/CustomDateTimeReader.cs index 966f681..51f9cd5 100644 --- a/Wreck/IO/Reader/User/CustomDateTimeReader.cs +++ b/Wreck/IO/Reader/User/CustomDateTimeReader.cs @@ -24,7 +24,7 @@ public class CustomDateTimeReader : AbstractTimestampReader public CustomDateTimeReader() : base() { - custom = new DateTime(); + custom = DateTime.Now; } public override string[] Creation() diff --git a/WreckGui/Model/GuiModel.cs b/WreckGui/Model/GuiModel.cs index b303e63..13c8d4f 100644 --- a/WreckGui/Model/GuiModel.cs +++ b/WreckGui/Model/GuiModel.cs @@ -57,7 +57,7 @@ public GuiModel() this.SourceModel.Add(s, true); } - this.customDateTimeModel = new DateTime(); + this.customDateTimeModel = DateTime.Now; this.correctionModel = new Dictionary(); foreach(CorrectionEnum c in CorrectionEnum.Values)