From 90e90415f5d40da1f20270ac2eecfb31aa7a2c70 Mon Sep 17 00:00:00 2001 From: mingshun Date: Sat, 3 Oct 2015 08:53:51 +0800 Subject: [PATCH] Replace the deprecated erlang:now() with os:timestamp() --- src/geef_sig.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geef_sig.erl b/src/geef_sig.erl index 91e8f38..f149b74 100644 --- a/src/geef_sig.erl +++ b/src/geef_sig.erl @@ -24,7 +24,7 @@ default(Repo) -> %% @doc Create a signature with the specified username and email, with %% a timestamp of now now(Name, Email) -> - Now = now(), + Now = os:timestamp(), %% We ask two questions "what's the time here?" and "what's the %% time in UTC-Land?". The difference in minutes is our offset. Local = calendar:datetime_to_gregorian_seconds(calendar:now_to_local_time(Now)),