Timestamp.of(java.util.Date) fails for pre-epoch dates not truncated to seconds #3429
Labels
api: core
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.
com.google.cloud.Timestamp.of(Date) fails with IllegalArgumentException if the given date is before epoch and not truncated to seconds, in the concrete example, one millisecond before epoch was used.
google-cloud-core version: 1.35.0
Stacktrace fragment:
Unit test (the variant with seconds and nanos succeeds, the variant with Date fails for the same instant in time):
The text was updated successfully, but these errors were encountered: