Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Date type value in typescript as input to TIMESTAMP filed results in '1970-01-01 00:00:00 UTC' #419

@huilingwei

Description

@huilingwei

Hi,
I am using nodejs-bigquery-storage API: Append_rows_json_writer_default to insert data to Big Query. For timestamp field, when input new Date(), the data store in BigQuery will be '1970-01-01 00:00:00 UTC'. It will be OK when using value Date.now()*1000.

Is there any problem to input new Date() for the timestamp field?

Thanks,
Huiling

Metadata

Metadata

Assignees

Labels

api: bigquerystorageIssues related to the googleapis/nodejs-bigquery-storage API.priority: p3Desirable enhancement or fix. May not be included in next release.type: docsImprovement to the documentation for an API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions