diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-08-29 00:03:01 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-08-29 00:03:01 +0300 |
commit | caeba984a1120713035cb08089ec19d68e1af3ca (patch) | |
tree | 91e9139e867f05ff42f1579148f441f7a2a60fb6 | |
parent | 1c4d0bab8ad9973077d231fd4fabfb76f4645a3f (diff) |
Use system_clock instead of timestamp::clock
-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: |