diff options
-rw-r--r-- | bpkg/auth.cxx | 3 | ||||
-rw-r--r-- | bpkg/package.hxx | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/bpkg/auth.cxx b/bpkg/auth.cxx index 4faf9ed..5d9a638 100644 --- a/bpkg/auth.cxx +++ b/bpkg/auth.cxx @@ -14,6 +14,7 @@ #include <libbutl/process.hxx> #include <libbutl/openssl.hxx> #include <libbutl/fdstream.hxx> +#include <libbutl/timestamp.hxx> #include <libbutl/filesystem.hxx> #include <bpkg/package.hxx> @@ -838,7 +839,7 @@ namespace bpkg // shared_ptr<certificate> cert (parse_cert (co, "", cert_pem, r)); - timestamp now (timestamp::clock::now ()); + timestamp now (system_clock::now ()); if (cert->end_date < now) fail << "certificate for repository " << r << " has expired"; diff --git a/bpkg/package.hxx b/bpkg/package.hxx index 1236357..eeec449 100644 --- a/bpkg/package.hxx +++ b/bpkg/package.hxx @@ -650,7 +650,7 @@ namespace bpkg expired () const { assert (!dummy ()); - return timestamp::clock::now () > end_date; + return butl::system_clock::now () > end_date; } public: |