kelektiv / node-cron

Cron for NodeJS.
MIT License
8.48k stars 626 forks source link

The current Date is not accurate. #887

Closed 07ke closed 4 months ago

07ke commented 4 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 4 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