-
-
Notifications
You must be signed in to change notification settings - Fork 166
[FireStore] How to decode Timestamp in Multiplatform Code (Android/iOS) #113
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Yes, have a read of https://github.com/GitLiveApp/firebase-kotlin-sdk#serialization |
@nbransby Thanks for the reply, I had already read the docs, I couldn't find anywhere to pass in the Class serializer for Article as .get() doesn't take any parameters the same way set() would. We are trying to read data from Firestore.
|
|
Or you might be affected by #64 ? |
@nbransby Thanks for the code, I just tried that exact sample code in Android and still get,
|
@wezley98 any solution? |
What about encoding it ? i.e. adding a date in the where clause Query.where("updatedDate", greaterThan = what_to_place_here) |
Any updates on this? |
Given
When
date
is type timestamp in Firestore.Then
How do we decode this type in commonMain for example? I have tried setting Article.date to String and Double and both crash.
Does the SDK provide any method to help with decoding this automatically?
The text was updated successfully, but these errors were encountered: