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

Decode Date JSON value at LiveQuery #5540

Merged
merged 1 commit into from
Apr 30, 2019
Merged

Conversation

ananfang
Copy link
Contributor

@ananfang ananfang commented Apr 27, 2019

Date value stored in object is represented in JSON format like this:
{"__type": "Date", "iso": "2006-04-22T00:13:00.520Z"}

It should be transformed to Date object before comparing, or it will always be failed.
That means all Date constraints at LiveQuery are actually failed.

P.S.
iOS / Mac client library should be modified as well, please check parse-community/ParseLiveQuery-iOS-OSX#186

@dplewis
Copy link
Member

dplewis commented Apr 27, 2019

Nice catch! I’ll see if this also works for LDS in the JS SDK. The test are passing but there is a flaky test.

Copy link
Member

@dplewis dplewis left a comment

Choose a reason for hiding this comment

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

It looks good. I just left a comment.

@dplewis dplewis requested a review from acinader April 30, 2019 16:22
@dplewis dplewis merged commit fa97df5 into parse-community:master Apr 30, 2019
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
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