We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the dates are sent to CronJob.make, they are not interpreted as Date in node-cron library, typeof <rescript-date> shows Object.
CronJob.make
Date
node-cron
typeof <rescript-date>
Object
I don't know what is wrong, it seems like #JsDate(Js.Date.fromString(futureDate) does not result in a real Date, but something else.
#JsDate(Js.Date.fromString(futureDate)
Nevertheless, cron has advanced and is no longer using Moment, but have changed to Luxon, so this library probably needs a rewrite.
cron
Moment
Luxon
Looking at the TypeScript types could be of help: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/cron/index.d.ts
Unfortunately is the only ReScript/BuckleScript Luxon library I could find a bit outdated: https://github.com/davidgomes/bs-luxon
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When the dates are sent to
CronJob.make
, they are not interpreted asDate
innode-cron
library,typeof <rescript-date>
showsObject
.I don't know what is wrong, it seems like
#JsDate(Js.Date.fromString(futureDate)
does not result in a realDate
, but something else.Nevertheless,
cron
has advanced and is no longer usingMoment
, but have changed toLuxon
, so this library probably needs a rewrite.Looking at the TypeScript types could be of help: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/cron/index.d.ts
Unfortunately is the only ReScript/BuckleScript Luxon library I could find a bit outdated: https://github.com/davidgomes/bs-luxon
The text was updated successfully, but these errors were encountered: