firebase firestore导入时间戳记日期

我使用firebase进出口节点脚本将一些json数据播种到firebase。我需要在JSON文件中运行javascript日期函数,以获取保存为Firebase时间戳格式的日期。

"updated": {
   "uid": "lVwMNLdzijfLz5XphJjPna8lBFN2","createdAt": new Date("December 10,2018")
 },

由于新的日期不是有效的json格式,因此我的节点脚本返回错误。如果我将值另存为日期字符串,则将其另存为Firebase中的字符串,这不是我想要的。有帮助吗?

yshvip 回答:firebase firestore导入时间戳记日期

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3158181.html

大家都在问