Skip to content

Commit

Permalink
Fix DateTime test (#167)
Browse files Browse the repository at this point in the history
***NO_CI***
  • Loading branch information
josesimoes authored Jan 15, 2022
1 parent 36126c5 commit fdcfee8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/NFUnitTestSystemLib/UnitTestDateTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2372,9 +2372,10 @@ private DateTime GetRandomDateTime()

dt = new(ticks);

// need to update millisec and second because it could have changed with new ticks value
// need to update minutesm, millisec and second because it could have changed with new ticks value
millisec = dt.Millisecond;
second = dt.Second;
minute = dt.Minute;

return dt;
}
Expand Down

0 comments on commit fdcfee8

Please sign in to comment.