Skip to content
New issue

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

raise ParserError if year, month, or date is not found in string #482

Conversation

armando1793
Copy link

this attempts to resolve #456

using arrow.get('31.12.2017') as an example, the input string matches the format YYYY generated by parser.parse_isoformat. As a result, only year is parsed from the input string which leads to month and date defaulting to 1 in _build_datetime.

This attempts to resolve the attached issue by raising parser error if year, date or month is missing from the parts parameter provided to _build_datetime

@armando1793 armando1793 closed this Nov 9, 2017
@armando1793
Copy link
Author

closing. bad solution -_-

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.

Parsing gives incorrect data instead of failing for unknown format
1 participant