If I do: new firebase.firestore.Timestamp.now()
and use console.log()
on it, the console prints out the following:
{"nanoseconds": 89000000, "seconds": 1631289143}
If I now take those nanoseconds and seconds and try to create out of that the same timestamp like this: new firebase.firestore.Timestamp(89000000, 1631289143)
I receive the error:
FirebaseError: Timestamp nanoseconds out of range: 1631289143
Can someone pls explain this strange behavior to me? How is it possible that I cannot recreate the timestamp from just few seconds ago?