@@ -168,7 +168,7 @@ defmodule Plug.Crypto do
168
168
* `:key_digest` - option passed to `Plug.Crypto.KeyGenerator`
169
169
when generating the encryption and signing keys. Defaults to `:sha256`
170
170
* `:signed_at` - set the timestamp of the token in seconds.
171
- Defaults to `System.system_time (:millisecond)`
171
+ Defaults to `System.os_time (:millisecond)`
172
172
* `:max_age` - the default maximum age of the token. Defaults to
173
173
`86400` seconds (1 day) and it may be overridden on `verify/4`.
174
174
@@ -196,7 +196,7 @@ defmodule Plug.Crypto do
196
196
* `:key_digest` - option passed to `Plug.Crypto.KeyGenerator`
197
197
when generating the encryption and signing keys. Defaults to `:sha256`
198
198
* `:signed_at` - set the timestamp of the token in seconds.
199
- Defaults to `System.system_time (:millisecond)`
199
+ Defaults to `System.os_time (:millisecond)`
200
200
* `:max_age` - the default maximum age of the token. Defaults to
201
201
`86400` seconds (1 day) and it may be overridden on `decrypt/4`.
202
202
@@ -347,5 +347,5 @@ defmodule Plug.Crypto do
347
347
defp expired? ( _signed , max_age_secs ) when max_age_secs <= 0 , do: true
348
348
defp expired? ( signed , max_age_secs ) , do: signed + trunc ( max_age_secs * 1000 ) < now_ms ( )
349
349
350
- defp now_ms , do: System . system_time ( :millisecond )
350
+ defp now_ms , do: System . os_time ( :millisecond )
351
351
end
0 commit comments