- Notifications
You must be signed in to change notification settings - Fork750
Open
Description
Describe the bug
Parsing time from string based on ahh:mm a
format gives valid true even if the hour is greater than 12
To Reproduce
import{DateTime}from"luxon";constdate=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 ofhh
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