-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Array of Dates are saved as array of Strings #3591
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
Comments
Thanks for the detailed issue report, we'll have a look shortly |
Hold up, seems I'm incorrect, I'm seeing the issue again now with 2.3.2. Investigating I'll provide more deets soon. |
all good! Take your time! Your issue seems to be well defined and we should be able to write a unit test for that. |
Aw, this isn't an issue in Parse Server, it's an issue with Parse Dashboard. Double clicking in the array field to examine the dates and clicking outside to defocus seems to be saving the array and overriding it with strings instead of dates - likely simply because it shows them as strings and it saves on defocus. I can file a new report against parse dashboard. |
Someone else already encountered this issue, reported here: https://github.com/ParsePlatform/parse-dashboard/issues/590 |
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
This is a regression introduced in version 2.3.3, it seems most likely due to #3389. If you define an Array column and you save an array of Date objects to it (see Swift code below), it will actually save it as an array of Strings. With version 2.3.2, they were properly saved as Date objects.
Steps to reproduce
Expected Results
The dates field should contain a single Date object
Actual Outcome
The dates field contains a single String object
Environment Setup
Server
Database
Logs/Trace
Not relevant
The text was updated successfully, but these errors were encountered: