I am building a raspbian-based distro (FullPageOS), and it seems like on boot of the latest Jessie sntp service is running, internet connection is established, but sntp is not updating the clock to the current date. This is particularly annoying because all the https certificates become invalid because of this.
I know that running this fixes the issue from the commandline:
sudo sntp -stime.nist.gov
But running it on X autostart does not seem to have the same effect, I assume because the internet is not ready yet.
What would be the best way around this?
EDIT: I understand systemd uses systemd-timesyncd, how would I make sure it updated on boot when internet starts up?