grahamar/cron-parser

24 hour option not respected with english locale

tanyona opened this issue · 0 comments

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.