We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug A clear and concise description of what the bug is.
To Reproduce Please share a minimal code example that triggers the problem:
it("Monday", () => { const str = "Monday, 27-Jun-22 08:49:37 GMT"; expect(DateTime.fromHTTP(str).isValid).toBe(true); }); it("Tuesday", () => { const str = "Tuesday, 28-Jun-22 08:49:37 GMT"; expect(DateTime.fromHTTP(str).isValid).toBe(true); }); it("Wednesday", () => { // FAILS const str = "Wednesday, 29-Jun-22 08:49:37 GMT"; expect(DateTime.fromHTTP(str).isValid).toBe(true); }); it("29-Jun-21", () => { const str = "Tuesday, 29-Jun-21 08:49:37 GMT"; expect(DateTime.fromHTTP(str).isValid).toBe(true); }); it("Thursday", () => { const str = "Thursday, 30-Jun-22 08:49:37 GMT"; expect(DateTime.fromHTTP(str).isValid).toBe(true); }); it("Friday", () => { const str = "Friday, 01-Jul-22 08:49:37 GMT"; expect(DateTime.fromHTTP(str).isValid).toBe(true); }); /* √ works √ Monday √ Tuesday × Wednesday √ Wednesday 2021 √ Thursday √ Friday */
Actual vs Expected behavior I expect fromHTTP to work for 29 Jun 2022, instead I'm getting parse error.
Desktop (please complete the following information):
Additional context Add any other context about the problem here. "Wed, 29 Jun 2022 08:05:35 GMT" works but not Wednesday, 29-Jun-22 08:49:37 GMT
"Wed, 29 Jun 2022 08:05:35 GMT"
Wednesday, 29-Jun-22 08:49:37 GMT
The text was updated successfully, but these errors were encountered:
Found issue, PR on it's way
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Please share a minimal code example that triggers the problem:
Actual vs Expected behavior
I expect fromHTTP to work for 29 Jun 2022, instead I'm getting parse error.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
"Wed, 29 Jun 2022 08:05:35 GMT"
works but notWednesday, 29-Jun-22 08:49:37 GMT
The text was updated successfully, but these errors were encountered: