peburrows / goth

Elixir package for Oauth authentication via Google Cloud APIs
http://hexdocs.pm/goth
MIT License
284 stars 108 forks source link

change to os_time to prevent unmanagable clock skew #158

Closed bunnylushington closed 1 year ago

bunnylushington commented 1 year ago

Changed System.system_time(:second) to System.os_time(:second) per the recommendation in #147.

Note that the skew, at least on my system, was pretty extreme:

{:system_time, {:ok, ~U[2023-04-28 11:22:57Z]}}
{:os_time, ~U[2023-04-28 18:38:17.936225Z]}
wojtekmach commented 1 year ago

Thank you!