Skip to content
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

24 hour option not respected with english locale #54

Open
tanyona opened this issue Nov 14, 2017 · 0 comments
Open

24 hour option not respected with english locale #54

tanyona opened this issue Nov 14, 2017 · 0 comments

Comments

@tanyona
Copy link
Contributor

tanyona commented Nov 14, 2017

For a schedule like 0 2 18 * * ?

If you have

Options cronOptions = new Options();
cronOptions.setZeroBasedDayOfWeek(false); //day of the week for quartz cron starts at 1 i.e. SUN
cronOptions.setTwentyFourHourTime(true);

String description = CronExpressionDescriptor.getDescription(cronString, cronOptions, Locale.ENGLISH);

it will display something like At 6:02 PM. I would expect it to display something like "At 18:02". It does this for other locales e.g. it, de etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant