How to access firestore.Timestamp from Firebase Cloud Function

后端 未结 5 1785
遥遥无期
遥遥无期 2021-02-12 17:46

We are in the middle of converting our Firestore Date object to the new Timestamp Objects

We have done so successfully on the front end by importing firestore



        
5条回答
  •  [愿得一人]
    2021-02-12 18:20

    I came across the same problem and so created a basic node module for Firebase Firestore Timestamps here https://www.npmjs.com/package/firebase-firestore-timestamp

    Basic code port from https://www.gstatic.com/firebasejs/4.13.0/firebase-firestore.js

提交回复
热议问题