Skip to content

Timestamp field fails to import nanoseconds #136

@drmencos

Description

@drmencos

Hello!

I'm trying to import a date field with nanoseconds, the problem is, when I query the data from Firestore I always get 0 nanoseconds.

I'm using v1.1.0.
My client is in Angular Fire v7.3.0.

This is my json data:

{
  "mycollection": [
    {
      "date": {
        "_seconds": 1598507986,
        "_nanoseconds": 660000000
      }
    }
  ]
}

The response:

date: at {seconds: 1598507986, nanoseconds: 0}

I tried using dates: ['date'] and autoParseDates: true. Both ways the dates are parsed ok, and they're displayed correctly in Firebase Console, but since it won't show nanoseconds, I can't tell if they are being imported ok.

Am I doing something wrong, or does it have to do with the client?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions