-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
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
Incorrect description for Quartz Cron Expression: 0 0 11 L-2 * ? #308
Comments
@LennyKarpel Thank you for reporting this! May we ask for a PR with a test for this issue? Happy New Year! |
@jmrozanec Happy New Year to you too !! I am new this this. How do I create a PR if I cannot create a branch to put the changes on ? The test would be something like:
anyway .. hope that helps. Let me know if I can do more. |
Fork this repo.
Then add your branch (if you like). Push the changes to your forked repo.
After that you can create the pull request.
Am 30.12.2017 18:09 schrieb "Lenny Karpel" <notifications@github.com>:
… @jmrozanec <https://github.com/jmrozanec> Happy New Year to you too !!
I am new this this. How do I create a PR if I cannot create a branch to
put the changes on ?
The test would be something like:
@test
public void testIssue308()
{
CronDefinition cronDefinition = CronDefinitionBuilder.instanceDefinitionFor( CronType.QUARTZ );
CronParser parser = new CronParser( cronDefinition );
Cron quartzCron = parser.parse( "0 0 11 L-2 * ?" );
CronDescriptor descriptor = CronDescriptor.instance( Locale.getDefault() );
String description = descriptor.describe( quartzCron );
// not sure what the exact string 'should' be ..
assertNotEquals( "at 11:00 two days before the last day of month", description);
}
anyway .. hope that helps. Let me know if I can do more.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#308 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQ_OIcDVD31T7zeziBeHODoZ4eaD6-8Wks5tFm4-gaJpZM4RPhhD>
.
|
@jmrozanec I can tackle this one. |
@LennyKarpel @Naxos84 Fixed by @pangyikhei in #458! |
Currently the description returned is 'at 11:00 last day of month'. Should be described as happening at 11:00 two days before the end of the month.
The text was updated successfully, but these errors were encountered: