This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Description
I have a query that looks like this:
NSDate *timeFilter = [NSDate dateWithTimeIntervalSinceNow:-(kMatchesNearMeTimeFilter)];
PFQuery *query = [PFQuery queryWithClassName:@"Match"];
[query whereKey:@"status" containedIn:@[kMatchStatusOpen, kMatchStatusInProgress]];
[query whereKey:@"location" nearGeoPoint:geopoint withinMiles:kMatchesNearMeDistance];
[query whereKey:@"updatedAt" greaterThanOrEqualTo:timeFilter];
[query includeKey:@"organizer"];
[query orderByDescending:@"updatedAt"];
When I try to subscribe to this query, the app crashes with an error very similar to the picture below (as seen on #97).

When Client serializes the ClientOperation to write it to the socket, JSONSerialization blows up because the Dictionary extension in QueryEncoder.swift fails to preemptively serialize any Dates that might be part of the query before it goes to JSONSerialization. I created a little playground that isolates the problem, and here's the error:

Possibly related issues: #16, #43, and #97.