panlatent / cron-expression-descriptor

Converts cron expressions into human readable descriptions.
MIT License
16 stars 5 forks source link

24-hour format #7

Open maisoui opened 3 years ago

maisoui commented 3 years ago

Hi,

In french language, 24-hours format is not correct. 45 22 * * * will give A 10:45. This is not correct, it should be A 22:45.

Best regards, Jonathan

panlatent commented 2 years ago
public function __construct(string $expression, string $locale = 'en_US', bool $isUse24HourTimeFormat = false, bool $fallback = true)

The third parameter isUse24HourTimeFormat of the constructor sets the 24-hour format, do you provide true?