You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When obtaining the difference between two dates on Linux, Calendar's .dateComponents(_:from:to: ) method will return nil instead of the correct value. This seemingly only occurs when the two dates are off by one minute.
Environment
Using the Swift 4.2 Docker image:
Ubuntu 16.04
Swift 4.2
Additional Detail from JIRA
md5: ff7988c73bd10692c9cf2616cfde9eb1
Issue Description:
When obtaining the difference between two dates on Linux, Calendar's
.dateComponents(_:from:to: )
method will returnnil
instead of the correct value. This seemingly only occurs when the two dates are off by one minute.However, when using the
.values(for: )
method and the same dates, it returnsNSDateComponentUndefined
(orInt.max
). Might be related to SR-2671.The text was updated successfully, but these errors were encountered: