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. docker - Swift 5 Ubuntu 16.04 Crash with dateComponents - Stack Overflow
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!