Spanner.date generates an invalid Spanner DATE value for dates before 1000AD #1653
Labels
api: spanner
Issues related to the googleapis/nodejs-spanner API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Spanner.date does not generate Spanner compatible ISO dates for years before 1000AD, for example:
Spanner.date("954-01-01").toJSON()
=>954-01-02
(instead of0954-01-02
)This causes an
INVALID_ARGUMENT
query errorThe text was updated successfully, but these errors were encountered: