Skip to content

Commit

Permalink
fix: generating timestamp using os_time instead of system_time (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed Sep 12, 2023
1 parent 6cbd43f commit a42ed60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/guardian.ex
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ defmodule Guardian do
Provides the current system time in seconds.
"""
@spec timestamp() :: pos_integer
def timestamp, do: System.system_time(:second)
def timestamp, do: DateTime.to_unix(DateTime.utc_now())

@doc """
Converts keys in a map or list of maps to strings.
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Guardian.Mixfile do
use Mix.Project

@app :guardian
@version "2.3.1"
@version "2.3.2"
@url "https://github.com/ueberauth/guardian"
@maintainers [
"Daniel Neighman",
Expand Down

0 comments on commit a42ed60

Please sign in to comment.