See detailed tutorial at https://mongoose.ws/tutorials/sntp-time-sync/