Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Dates are not supported #6

Closed
uknowmeright opened this issue Jul 25, 2018 · 1 comment
Closed

Dates are not supported #6

uknowmeright opened this issue Jul 25, 2018 · 1 comment

Comments

@uknowmeright
Copy link

Everything worked correctly for me except the export of dates.
They seem to be imported back into the database as a string.

ex:
2018-05-31T04:00:00.000Z

Any advice on getting around this?

Thanks,

@dalenguyen
Copy link
Owner

Hi @uknowmeright , in this case, I think that you can loop through the array and convert the string to date by using a helper like the moment package or new Date() in JavaScript, then write data to firestore. You can use Firebase function helper to do it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants