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

Add workaround for erroneous RealmResult.asJson date formatting. #7329

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rorbech
Copy link
Collaborator

@rorbech rorbech commented Mar 1, 2021

Date representation returned by RealmResult.asJson cannot be fed directly to Realm.createAllFromJson because it lacks T-indicator and Z-timezone indicator. Ideally this should be fixed by outputting a correct ISO8601 formatted string, but that would maybe break people's usage of it, so tried to see if it was possible to just parse the erroneous strings without too much effort. Don't know if it is more dangerous than good though!?

Related to #7326

@rorbech rorbech requested a review from cmelchior March 1, 2021 13:55
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.

None yet

1 participant