-
Notifications
You must be signed in to change notification settings - Fork 159
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
[Issue] ServerTimestamp not working #666
Comments
Having the same problem, can't use the ServerTimestamp as written in the documentation |
@Daeda88 do you know the issue here? |
Not sure why it's wrong. I see we just use BaseTimestamp, from what it looks like also to write. But perhaps there is a bug. |
In the test I see we have: @marcelpallares can you try passing the EDIT: Also the crashlogs seem to be serializing at the Google firestore implementation. Are you sure you're calling |
I'm trying to use
ServerTimestamp
on one of my entity data classes from Firestore. I have tried following what the README says and I added theTimestamp
like:However, the code complains because
ServerTimestamp
is not aTimestamp
but aBaseTimestamp
. Instead, I have tried using:The
BaseTimestamp
approach seems to be working to read existing data, however, when trying to write a newServerTimestamp
I'm getting the following runtime exception:Am I doing something wrong here? Is this a known issue?
Thanks!
The text was updated successfully, but these errors were encountered: