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

DateFormatter is not thread safe #3166

Closed
Tracked by #4619
0xTim opened this issue Apr 27, 2022 · 3 comments
Closed
Tracked by #4619

DateFormatter is not thread safe #3166

0xTim opened this issue Apr 27, 2022 · 3 comments

Comments

@0xTim
Copy link
Member

0xTim commented Apr 27, 2022

The DateFormatter is not thread safe - https://github.com/apple/swift-corelibs-foundation/blob/bfead15ba7a547a8e2ea79dfd8be97de1153245d/Sources/Foundation/DateFormatter.swift#L190-L201

This is inconsistent with the behaviour and description of the Objective-C Foundation implementation - https://developer.apple.com/documentation/foundation/dateformatter

@0xTim
Copy link
Member Author

0xTim commented Apr 29, 2022

Raised earlier under swiftlang/swift#50285

@parkera
Copy link
Contributor

parkera commented Jul 5, 2024

Thanks for checking @dimitribouniol.

@parkera parkera closed this as completed Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants