Skip to content

FireStore - How do i use Server timestamp value for a Values::TimestampValue? #179

Answered by mobizt
RazorMLG asked this question in Q&A
Discussion options

You must be logged in to vote

The Values::TimestampValue class accepts the string in its constructor.

If you get the server timestamp keys that returned from any write operation response JSON payloads e.g. updateTime and timestampValue, you can set it to the Values::TimestampValue constructor directly as it is in RFC3339 UTC "Zulu" format.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@RazorMLG
Comment options

Answer selected by RazorMLG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants