Bug 4478 - DAY_OF_WEEK off by 1
DAY_OF_WEEK off by 1
Status: RESOLVED FIXED
Product: crontab-parser
Classification: Unclassified
Component: CrontabExpression
1
All All
: P3 normal
: ---
Assigned To: d.bell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-14 12:23 UTC by hartl
Modified: 2011-09-15 09:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hartl 2011-09-14 12:23:47 UTC
cron syntax states: 0=sunday

however CronTabExpression compares using Calendar.DAY_OF_WEEK, where SUNDAY=1

so: "* * * * 5" does not match Friday, instead it matches Thursday...
Comment 1 d.bell 2011-09-14 16:24:35 UTC
I believe this was fixed in 1.0.1
Comment 2 hartl 2011-09-15 09:10:21 UTC
Yes, its fixed in 1.0.1 - i just wasn't aware of that release (it's only in maven but not listed under download).