cron-parser
cron-parser copied to clipboard
The function stringifyField parse Incorrect, It parse hours `6-18/3` to `6/6`
https://github.com/harrisiirak/cron-parser/blob/ec7a3844553d93bddac34d07c06245eae5579829/lib/field_stringify.js#L27-L28
Hi @daydaychen,
Thanks for reporting this. Can also please provide a code example?
Best regards, Harri
Thanks for you reply.
import { parseExpression } from 'cron-parser'
var crontab = "0 6-18/6 * * *"
res = parseExpression(crontab).stringify()
// "0 6/6 * * *"
Could you tell me how it works? I don't understand.
https://github.com/harrisiirak/cron-parser/blob/ec7a3844553d93bddac34d07c06245eae5579829/lib/field_stringify.js#L27-L28
@daydaychen I'll investigate this.