Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
more .compareto
Browse files Browse the repository at this point in the history
  • Loading branch information
rayzerbrain authored Nov 10, 2021
1 parent d5a1337 commit 0b2003b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ActivityLogger/API/ActivityRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public DateTime FindEarliestLog()
foreach (string logDate in LoggedTimeOnDay.Keys)
{
dt = DateTime.Parse(logDate);
if (dt.Ticks < log.Ticks) log = dt;
if (dt.CompareTo(log) < 0) log = dt;
}
return log;
}
Expand Down

0 comments on commit 0b2003b

Please sign in to comment.