showing ServerValue.TIMESTAMP in FirestoreRecyclerAdapter in Android

前端 未结 1 1927
遇见更好的自我
遇见更好的自我 2021-01-24 16:09

I wanted to show in the List the servers Timestamp (actually the date). The FirestoreRecyclerAdapter is feeded by this class (only kept the timestamp related method

1条回答
  •  清歌不尽
    2021-01-24 16:56

    The ServerValue.TIMESTAMP is used when setting the timestamp in a Firebase realtime database, while in Cloud Firestore (which is a different product), we are using FieldValue.serverTimestamp(), as explained in my answer from this post.

    0 讨论(0)
提交回复
热议问题