System.os_time(:second), System.system_time(:second) return nil on fly

Just wanted to post here that I’m using System.os_time(:second) to get the current timestamp for use with OAuth to determine when tokens expire. It works fine locally (MacOS) but these calls return nil on Fly.

I was curious if anyone’s run into this and what the cause might be; if perhaps it is related to the use of the :second atom?

Which Elixir version are you using? This works for me on a Fly VM with v1.7.4:

iex(4)> System.os_time(:second)
1642598270
iex(5)> System.os_time(:seconds)
1642598271