Skip to:
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.
gmtime_s
gmtime_r
gmtime
nullptr
Build couchbase-lite-net-3.0.0-33 contains couchbase-lite-core commit 1b40fc9 with commit message:https://couchbasecloud.atlassian.net/browse/CBL-220#icft=CBL-220: Fix Windows issue with pre-epoch dates (#1090)
Build couchbase-lite-java-3.0.0-46 contains couchbase-lite-core commit 1b40fc9 with commit message:https://couchbasecloud.atlassian.net/browse/CBL-220#icft=CBL-220: Fix Windows issue with pre-epoch dates (#1090)
Build couchbase-lite-android-3.0.0-46 contains couchbase-lite-core commit 1b40fc9 with commit message:https://couchbasecloud.atlassian.net/browse/CBL-220#icft=CBL-220: Fix Windows issue with pre-epoch dates (#1090)
Build couchbase-lite-ios-3.0.0-55 contains couchbase-lite-core commit 1b40fc9 with commit message:https://couchbasecloud.atlassian.net/browse/CBL-220#icft=CBL-220: Fix Windows issue with pre-epoch dates (#1090)
Build couchbase-lite-net-3.0.0-26 contains couchbase-lite-core commit 1b40fc9 with commit message:https://couchbasecloud.atlassian.net/browse/CBL-220#icft=CBL-220: Fix Windows issue with pre-epoch dates (#1090)
https://github.com/couchbase/couchbase-lite-core/issues/782
As noted in the docs
gmtime_s
(the Windows equivalent ofgmtime_r
andgmtime
(as well as local time equivalents) will returnnullptr
when called on a date that is before the Unix epoch.