From a4ef2ba028f9f3ba43a15934cb1ab95cad94cfa2 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 18 Aug 2016 14:34:26 +0200 Subject: Use erlang:timestamp/0 instead of deprecated now/0. --- src/x509.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/x509.erl b/src/x509.erl index e0d8ea7..7ae73c3 100644 --- a/src/x509.erl +++ b/src/x509.erl @@ -377,7 +377,7 @@ pems_from_file(Filename) -> dump_unparsable_cert(Der) -> case application:get_env(catlfish, rejected_certs_path) of {ok, Directory} -> - {NowMegaSec, NowSec, NowMicroSec} = now(), + {NowMegaSec, NowSec, NowMicroSec} = erlang:timestamp(), Filename = filename:join(Directory, io_lib:format("~p:~p.~p", -- cgit v1.1