unwrapFirestoreDoc() should .toDate() all timestamps
Opened this issue · 0 comments
lupas commented
If a documents contains timestamps, one has to convert them to the date format with toDate() before they can be used in the app.
It would be great if the unwrapFirestoreDoc() could detect all timestamps, .toDate() them and add them back to the items like so:
message.date = message.date.toDate()