Description
https://github.com/couchbase/couchbase-lite-core/issues/782
As noted in the docs gmtime_s (the Windows equivalent of gmtime_r and gmtime (as well as local time equivalents) will return nullptr when called on a date that is before the Unix epoch.