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
root@a20f82436e13:/home# swift --version Swift version 4.2.1 (swift-4.2.1-RELEASE) Target: x86_64-unknown-linux-gnu
~ $ swift --version Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1) Target: x86_64-apple-darwin18.2.0
md5: 19e1d581e960e911730f788be222c4f1
Issue Description:
Hi
The following code on macOS and Linux (I used docker image swift:4.2 for my test) behave differently
import Foundation let formatter: DateFormatter = { let formatter = DateFormatter() formatter.dateFormat = "yyyy-MM-dd" return formatter }() print(formatter.date(from: "2018-03-09T10:25:16+01:00"))
On macOS it prints `nil` and on Linux it prints `Optional(2018-03-09 00:00:00 +0000)`
The text was updated successfully, but these errors were encountered:
cc @millenomi
Sorry, something went wrong.
#1822
This is fixed in master and swift-5.0-branch
master
swift-5.0-branch
No branches or pull requests
Environment
root@a20f82436e13:/home# swift --version
Swift version 4.2.1 (swift-4.2.1-RELEASE)
Target: x86_64-unknown-linux-gnu
~ $ swift --version
Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Target: x86_64-apple-darwin18.2.0
Additional Detail from JIRA
md5: 19e1d581e960e911730f788be222c4f1
Issue Description:
Hi
The following code on macOS and Linux (I used docker image swift:4.2 for my test) behave differently
On macOS it prints `nil` and on Linux it prints `Optional(2018-03-09 00:00:00 +0000)`
The text was updated successfully, but these errors were encountered: