From 424d1e0be88b05f82826bcc640be36355ba41794 Mon Sep 17 00:00:00 2001
From: Jean-Michel Picod <jmichel@google.com>
Date: Thu, 6 Feb 2020 10:31:00 +0100
Subject: [PATCH] Rename "today" to "now" to reflects resolution is seconds.

---
 build.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/build.rs b/build.rs
index 053277e..cac13b5 100644
--- a/build.rs
+++ b/build.rs
@@ -64,9 +64,9 @@ fn main() {
         .public_key()
         .unwrap()
         .public_eq(&PKey::from_ec_key(pkey).unwrap()));
-    let today = asn1::Asn1Time::days_from_now(0).unwrap();
-    assert!(cert.not_after() > today);
-    assert!(cert.not_before() <= today);
+    let now = asn1::Asn1Time::days_from_now(0).unwrap();
+    assert!(cert.not_after() > now);
+    assert!(cert.not_before() <= now);
 
     let mut cert_bin_file = File::create(&cert_bin_path).unwrap();
     cert_bin_file.write_all(&cert.to_der().unwrap()).unwrap();
-- 
GitLab