Possible bug in dateComponents method running on Ubuntu 16.04

Quite possibly this is the wrong place for this, but I've reported a bug I'm having in dateComponents. https://stackoverflow.com/questions/56555005/swift-5-ubuntu-16-04-crash-with-datecomponents
Please let me know of a better venue if there is one. Thanks.

IIRC the fix for this is coming out in a release soon; temporarily use Calendar(identifier: .gregorian) as the workaround instead of Calendar.current. In general, bugs should be submitted to bugs.swift.org.

2 Likes

Yes indeed that fixes the problem. Thanks!