kelektiv / node-cron

Cron for NodeJS.
MIT License
8.41k stars 621 forks source link

The current Date is not accurate. #887

Closed 07ke closed 3 months ago

07ke commented 3 months ago

⭐ Suggestion

I'm currently facing an issue with the accuracy of the Date in our system. The base time seems to be incorrect, and I would like to modify it so that it relies on an NTP (Network Time Protocol) service for synchronization. Could you provide guidance on how to achieve this?

💻 Use Cases

job.setNow(XXXX)

❌ Related Problems

No response

sheerlox commented 3 months ago

This is out of the scope of this library, and probably even out of the scope of Javascript or the JS runtime you're using.

This is an issue with the underlying OS, for which you gave no indication.

Here's a guide for the Debian system for example: How To Set Up Time Synchronization on Debian 10