Open
Description
Describe the bug
Parsing time from string based on a hh:mm a
format gives valid true even if the hour is greater than 12
To Reproduce
import { DateTime } from "luxon";
const date = DateTime.fromFormat('13:00 AM', 'hh:mm a', {});
console.log(date);
console.log(date.isValid);
Actual vs Expected behavior
It should give invalid since the definition of hh
is 12 hours clock
Desktop (please complete the following information):
- OS: MacOS M1
- Browser Chrome: 123
- Luxon version: 3.1.0
- Your timezone: Asia/Kolkata
Metadata
Metadata
Assignees
Labels
No labels