Skip to content

datastore: decoding dates does not load nanos #1607

@joel31415

Description

@joel31415

The nanos field is set when encoding a date, but not loaded when decoding.

I would expect Dates to be encoded and decoded with millisecond precision.

It seems intentional looking at the unit tests, but I hope it's a bug!

Metadata

Metadata

Labels

api: datastoreIssues related to the Datastore API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions