Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeStall committed May 23, 2017
1 parent 86cb51f commit 80f8e28
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ public void Validate()
{
if (this.StartTime > this.EndTime)
{
throw new InvalidOperationException("End Time must be greater than start time");
// This can happen in rare cases if the clock adjusts while the function is running.
this.EndTime = this.StartTime.AddMilliseconds(1);
}
}
}
Expand Down

0 comments on commit 80f8e28

Please sign in to comment.