Skip to content

Commit

Permalink
Fix default custom DateTime value bug (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk4j authored Mar 12, 2024
1 parent 400bdc7 commit c11c0fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Wreck/IO/Reader/User/CustomDateTimeReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class CustomDateTimeReader : AbstractTimestampReader

public CustomDateTimeReader() : base()
{
custom = new DateTime();
custom = DateTime.Now;
}

public override string[] Creation()
Expand Down
2 changes: 1 addition & 1 deletion WreckGui/Model/GuiModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public GuiModel()
this.SourceModel.Add(s, true);
}

this.customDateTimeModel = new DateTime();
this.customDateTimeModel = DateTime.Now;

this.correctionModel = new Dictionary<CorrectionEnum, Boolean>();
foreach(CorrectionEnum c in CorrectionEnum.Values)
Expand Down

0 comments on commit c11c0fa

Please sign in to comment.