Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change now() to os:timestamp().

  • Loading branch information...
commit 28dea15a06fc373627af143f1f2182d66ec1b6c3 1 parent ae95595
@bipthelin bipthelin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/oauth2.erl
View
2  src/oauth2.erl
@@ -405,5 +405,5 @@ build_context(Client, ExpiryTime, ResOwner, Scope) ->
-spec seconds_since_epoch(Diff :: integer()) -> non_neg_integer().
seconds_since_epoch(Diff) ->
- {Mega, Secs, _Micro} = now(),
+ {Mega, Secs, _Micro} = os:timestamp(),
Mega * 1000000 + Secs + Diff.
Please sign in to comment.
Something went wrong with that request. Please try again.