Skip to content

Commit

Permalink
Account for before/after
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspofford-dfinity committed Feb 22, 2024
1 parent a2b20ae commit 9891765
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ic-agent/src/agent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,7 @@ impl Agent {
let time = lookup_time(cert)?;
if (OffsetDateTime::now_utc()
- OffsetDateTime::from_unix_timestamp_nanos(time.into()).unwrap())
.abs()
> self.ingress_expiry
{
Err(AgentError::CertificateOutdated(self.ingress_expiry))
Expand Down

0 comments on commit 9891765

Please sign in to comment.