Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix problem where signed_at time was often expired (#225)
When rebooting a device NervesTime will try to restore a reasonable time from the RTC or the FileTime simulated RTC. This then sets OS time. The shared secret signing code was pulling System.system_time/1 which can lag behind System.os_time/1 for many minutes and can often start on a time that is wildly out of whack. This changes to use os_time meaning devices should reboot and connect much faster by default.
- Loading branch information