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

SR-9322: DateFormatter difference between macOS and Linux #1822

Merged
merged 1 commit into from Feb 11, 2019

Conversation

spevans
Copy link
Collaborator

@spevans spevans commented Jan 15, 2019

  • When parsing a date, return nil if the date to be parsed was not
    fully consumed by the parse format.

- When parsing a date, return nil if the date to be parsed was not
  fully consumed by the parse format.
@spevans
Copy link
Collaborator Author

spevans commented Jan 15, 2019

@swift-ci test

@spevans
Copy link
Collaborator Author

spevans commented Feb 11, 2019

@swift-ci test and merge

@swift-ci swift-ci merged commit df519f1 into apple:master Feb 11, 2019
lxbndr added a commit to readdle/swift-corelibs-foundation that referenced this pull request May 6, 2020
Apple implementation checks for unparsed content in source string.
Any non-whitespace leftover characters are considered as failure.
On the other hand, whitespaces are permitted and should not affect the result.

The check was partially implemented in apple#1822 (SR-9322).
This patch alters verification logic to be closer to Apple implementation.
lxbndr added a commit to readdle/swift-corelibs-foundation that referenced this pull request May 11, 2020
Apple implementation checks for unparsed content in source string.
Any non-whitespace leftover characters are considered as failure.
On the other hand, whitespaces are permitted and should not affect the result.

The check was partially implemented in apple#1822 (SR-9322).
This patch alters verification logic to be closer to Apple implementation.
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.

None yet

3 participants