From c171c0f8349cd1c430dc119975298cfa99b60710 Mon Sep 17 00:00:00 2001 From: Neel Chauhan Date: Fri, 16 Dec 2022 12:53:50 -0800 Subject: [PATCH] Use parse_rfc3339() in the tor-proto crate --- crates/tor-proto/src/channel/handshake.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/tor-proto/src/channel/handshake.rs b/crates/tor-proto/src/channel/handshake.rs index 0a7f0f29e..0bd9d0bd9 100644 --- a/crates/tor-proto/src/channel/handshake.rs +++ b/crates/tor-proto/src/channel/handshake.rs @@ -832,7 +832,8 @@ pub(super) mod test { // Timestamp when the example certificates were all valid. fn cert_timestamp() -> SystemTime { - SystemTime::UNIX_EPOCH + Duration::new(1601143280, 0) + use humantime::parse_rfc3339; + parse_rfc3339("2020-09-26T18:01:20Z").unwrap() } fn certs_test(