google-cloud-go
google-cloud-go copied to clipboard
Encode `civil.Time` with microsecond precision.
This truncates the precision of civil.[Date]Time from nanoseconds to microseconds because that is the precision limit of BigQuery, which these types are intended to work with.
In particular the BigQuery data transfer service rejects records that use these types for JSON encoding today due to the extra precision.
Fixes: https://github.com/googleapis/google-cloud-go/issues/6409