Use parse_rfc3339() in the tor-proto crate

This commit is contained in:
Neel Chauhan 2022-12-16 12:53:50 -08:00
parent fa5a417fc9
commit c171c0f834
1 changed files with 2 additions and 1 deletions

View File

@ -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<R>(