Skip to content

fix(en): don't read the month and day of an ISO date as a time - #59

Open
jayhemnani9910 wants to merge 1 commit into
olebedev:masterfrom
jayhemnani9910:fix/iso-date-not-hour-minute
Open

jayhemnani9910 wants to merge 1 commit into
olebedev:masterfrom
jayhemnani9910:fix/iso-date-not-hour-minute

Conversation

@jayhemnani9910

Copy link
Copy Markdown

2024-03-20 parses as 03:20 today, with match text 03-20, because a dash is an hour-minute separator and the dash before the month passes as the left boundary.

The left boundary no longer accepts a dash right after a digit. at 5-59 pm still works.

Added cases to the nil fixtures, they fail without the change. go test ./... passes.

'2024-03-20' matched as 03:20 today because a dash is an hour-minute
separator and the dash before the month passed as the left boundary.
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

Successfully merging this pull request may close these issues.

1 participant