How to access firestore.Timestamp from Firebase Cloud Function

后端 未结 5 1651
再見小時候
再見小時候 2021-02-12 17:38

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:38

    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

提交回复
热议问题