Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBL-5438: DateTime standard format parser #1977

Merged
merged 9 commits into from
Mar 28, 2024
Merged

CBL-5438: DateTime standard format parser #1977

merged 9 commits into from
Mar 28, 2024

Conversation

callumbirks
Copy link
Contributor

Description copied from Fleece PR:
A proper parser for DateTime formats, rather than just parsing format string as a DateTime.
This has benefits such as additional flexibility in future, but also allows us to keep consistent with the strange "almost-ISO" date format we shipped with CBL-3.1, because keeping format as a DateTime does not allow us to optionally use colon or no-colon for Timezone offset (i.e. +0500 / +05:00).
I added in parsing for a "subset" of https://howardhinnant.github.io/date/date.html#to_stream_formatting, but it's not necessary and if anyone thinks we don't need it, happy to take it out. Think it's a lot better than the weird "1111-11-11T11:11......` format we copied from Server though.

@callumbirks
Copy link
Contributor Author

Right now this points to the CBL-5438 Fleece branch, for sanity checks.
See Fleece PR couchbase/fleece#213

@callumbirks callumbirks requested review from snej and borrrden March 25, 2024 09:22
Copy link
Member

@borrrden borrrden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming this doesn't largely change from the previous place that it lived in Fleece

@cbl-bot
Copy link

cbl-bot commented Mar 27, 2024

Code Coverage Results:

Type Percentage
branches 69.68
functions 80.23
instantiations 36.81
lines 80.16
regions 76.73

@callumbirks callumbirks changed the base branch from master to release/3.2 March 28, 2024 11:14
@callumbirks callumbirks changed the base branch from release/3.2 to master March 28, 2024 11:15
@callumbirks
Copy link
Contributor Author

callumbirks commented Mar 28, 2024

Wanted to change to point to 3.2 branch, but it altered the commits. So I'll create another PR later to cherry-pick this one to 3.2 Nevermind, looks like this isn't target for 3.2 anyway

@callumbirks callumbirks merged commit 9329ea1 into master Mar 28, 2024
9 checks passed
@callumbirks callumbirks deleted the CBL-5438 branch March 28, 2024 17:04
jianminzhao added a commit that referenced this pull request May 23, 2024
CBL-5629: Update zlib to 1.3.1 (#2032)
CBL-5627: Update min MacOS version to 12.0 (#2033)
CBL-5539: Add an API to check if a vector index is trained or not (#2035)
CBL-5628: Update mbedtls to 2.28.8 (#2027)
374d485 Support latest vectorsearch (dev branch) and hybrid queries (#1980)
5c3c854 Lazy vector index updating (#1949)
CBL-5522: Port - N1QL Parser has exponential slowdown for redundant parentheses (#1984)
ab19634 Part of CBL 5579 in order to facilitate VS on .NET Android (#1993)
CBL-5507: Fix index-past-end in CookieStore (#1982)
CBL-5591: Binary Decoder to account for the new Logging object path (#1995)
294c3f8 Define _LIBCPP_REMOVE_TRANSITIVE_INCLUDES (#1987)
CBL-5438: DateTime standard format parser (#1977)
CBL-5498: Util changes for ConnectedClient (#1978)
CBL-5450: Remote rev KeepBody flag could be cleared accidentally
f8a8de2 Remove UWP builds from build scripts (#1954)
CBL-5425: Binary Encoder to encode the (Logging) object path (#1986)
CBL-4661: Fix ROUND_EVEN. (#1981)
jianminzhao added a commit that referenced this pull request Aug 26, 2024
CBL-5629: Update zlib to 1.3.1 (#2032)
CBL-5627: Update min MacOS version to 12.0 (#2033)
CBL-5539: Add an API to check if a vector index is trained or not (#2035)
CBL-5628: Update mbedtls to 2.28.8 (#2027)
374d485 Support latest vectorsearch (dev branch) and hybrid queries (#1980)
5c3c854 Lazy vector index updating (#1949)
CBL-5522: Port - N1QL Parser has exponential slowdown for redundant parentheses (#1984)
ab19634 Part of CBL 5579 in order to facilitate VS on .NET Android (#1993)
CBL-5507: Fix index-past-end in CookieStore (#1982)
CBL-5591: Binary Decoder to account for the new Logging object path (#1995)
294c3f8 Define _LIBCPP_REMOVE_TRANSITIVE_INCLUDES (#1987)
CBL-5438: DateTime standard format parser (#1977)
CBL-5498: Util changes for ConnectedClient (#1978)
CBL-5450: Remote rev KeepBody flag could be cleared accidentally
f8a8de2 Remove UWP builds from build scripts (#1954)
CBL-5425: Binary Encoder to encode the (Logging) object path (#1986)
CBL-4661: Fix ROUND_EVEN. (#1981)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants