summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2016-08-18 14:34:26 +0200
committerLinus Nordberg <linus@nordu.net>2016-08-18 14:46:26 +0200
commita4ef2ba028f9f3ba43a15934cb1ab95cad94cfa2 (patch)
tree218041e36eda56106ae9d061143d5f9a71a4aac9
parent31e1927e1a163c72360b2aea8f87701e4da2a6fb (diff)
Use erlang:timestamp/0 instead of deprecated now/0.
-rw-r--r--src/x509.erl2
1 files changed, 1 insertions, 1 deletions
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",