diff options
Diffstat (limited to 'openpgp/src/cert/bundle.rs')
-rw-r--r-- | openpgp/src/cert/bundle.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/bundle.rs b/openpgp/src/cert/bundle.rs index 6eea1248..182b4afd 100644 --- a/openpgp/src/cert/bundle.rs +++ b/openpgp/src/cert/bundle.rs @@ -237,7 +237,7 @@ impl<C> ComponentBundle<C> { -> Result<&Signature> where T: Into<Option<time::SystemTime>> { - let t = t.into().unwrap_or_else(time::SystemTime::now); + let t = t.into().unwrap_or_else(crate::now); // Recall: the signatures are sorted by their creation time in // descending order, i.e., newest first. @@ -596,7 +596,7 @@ impl<C> ComponentBundle<C> { { // Fallback time. let time_zero = || time::UNIX_EPOCH; - let t = t.into().unwrap_or_else(time::SystemTime::now); + let t = t.into().unwrap_or_else(crate::now); let selfsig_creation_time = selfsig.and_then(|s| s.signature_creation_time()) .unwrap_or_else(time_zero); |