Skip to content

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

Draft
rorbech wants to merge 1 commit intomainfrom
cr/json-date-import-fix
Draft

Add workaround for erroneous RealmResult.asJson date formatting.#7329
rorbech wants to merge 1 commit intomainfrom
cr/json-date-import-fix

Conversation

@rorbech
Copy link
Contributor

@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.

1 participant