Windows cannot handle dates before 1970 with C API

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.

Activity

Show:

CB robot February 20, 2021 at 4:22 AM

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)

CB robot January 20, 2021 at 12:18 AM

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)

CB robot January 19, 2021 at 11:54 PM

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)

CB robot January 12, 2021 at 2:16 AM

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)

CB robot January 6, 2021 at 4:47 AM

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)

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created August 3, 2019 at 5:20 AM
Updated February 20, 2021 at 4:22 AM
Resolved December 10, 2020 at 9:58 PM
Instabug