Skip to content

Commit

Permalink
chore: Set since and until log param default to unix epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Nov 1, 2023
1 parent ce5964f commit ba76abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Testcontainers/Clients/TestcontainersClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ public Task<long> GetContainerExitCodeAsync(string id, CancellationToken ct = de

if (default(DateTime).Equals(since))
{
since = DateTime.MinValue;
since = unixEpoch;
}

if (default(DateTime).Equals(until))
{
until = DateTime.MaxValue;
until = unixEpoch;
}

return Container.GetLogsAsync(id, since.ToUniversalTime().Subtract(unixEpoch), until.ToUniversalTime().Subtract(unixEpoch), timestampsEnabled, ct);
Expand Down

0 comments on commit ba76abb

Please sign in to comment.