dalenguyen / firestore-import-export

An application that can help you to backup and restore from Cloud Firestore | Firebase
https://www.npmjs.com/package/firestore-export-import
401 stars 109 forks source link

Timestamps not being properly handled? #23

Closed waylandc closed 5 years ago

waylandc commented 5 years ago

My original database uses Firestore's timestamp type.

The export script creates: "endDate": { "_seconds": 1577318400, "_nanoseconds": 0 }

Then if I import, the newly imported DB no longer has the timestamp field, instead it has a map with the above structure.

dalenguyen commented 5 years ago

Hi @waylandc, this is already fixed. You need to add "endDate" to the parameter in order to import date type.