Skip to content

Serialize Timestamps as string (per proto3 JSON format). #2249

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

Merged
merged 4 commits into from
Oct 10, 2019

Conversation

yuchenshi
Copy link
Member

This fixes using timestamps with the Firestore Emulator. This is similar to #2228, but for timestamps.

Discussion

(Internal tracking ID: 37282237)

Testing

Tested manually against the Firestore Emulator and production Firestore.

API Changes

None.

@schmidt-sebastian
Copy link
Contributor

Looks like this broke our tests. Can you take a look?

@yuchenshi
Copy link
Member Author

It's actually broken since we lost nanosecond precision. I'll revise the PR.

@yuchenshi
Copy link
Member Author

Fixed

@yuchenshi yuchenshi force-pushed the ys/firestore-proto-timestamp branch from 0badeff to caad4e0 Compare October 10, 2019 19:08
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! If this is the last change that is needed for Emulator support, we should also add a Changelog entry to let the users know that they should update their SDK.

@hsubox76 hsubox76 added this to the next milestone Oct 15, 2019
@firebase firebase locked and limited conversation to collaborators Nov 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants