File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java-core/google-cloud-core/src/test/java/com/google/cloud Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -249,8 +249,8 @@ void parseTimestampWithTimeZoneOffset() {
249249 assertThat (Timestamp .parseTimestampDuration ("9999-12-31T23:59:59.999999998Z" ))
250250 .isEqualTo (Timestamp .ofTimeSecondsAndNanos (Timestamp .MAX_VALUE .getSeconds (), 999999998 ));
251251 // Common use cases
252- assertThat (Timestamp .parseTimestampDuration ("2020-07-10T14:03:00-07:00" ))
253- .isEqualTo (Timestamp .ofTimeSecondsAndNanos (1594414980 , 0 ));
252+ assertThat (Timestamp .parseTimestampDuration ("2020-07-10T14:03:00.123 -07:00" ))
253+ .isEqualTo (Timestamp .ofTimeSecondsAndNanos (1594414980 , 123000000 ));
254254 assertThat (Timestamp .parseTimestampDuration ("2020-12-06T19:21:12.123+05:30" ))
255255 .isEqualTo (Timestamp .ofTimeSecondsAndNanos (1607262672 , 123000000 ));
256256 // We also confirm that parsing a timestamp with nano precision will behave the same as the
You can’t perform that action at this time.
0 commit comments