Skip to content

[Bug]: Incompatible timestamp object to firebase-admin/firestore #7301

@duncanchiu409

Description

@duncanchiu409

Operating System

ubuntu 22.04

Browser Version

chrome

Firebase SDK Version

^9.21.0

Firebase SDK Product:

Firestore

Describe your project's tooling

Angular app. Using @firebase/firestore to define timestamp interface and class.
Express API built with firebase-admin/firestore.

Describe the problem

interface of timestamp from firebase-admin is different to firebase-js-sdk's.

firebase-admin { "_seconds":xxx, "_nanoseconds":xxx }

firebase-js-sdk { "seconds":xxx, "nanoseconds":xxx }

Steps and code to reproduce issue

build a simple app with angular and api communicate through json

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions