@@ -397,8 +397,7 @@ public void testTimestamp() {
397397 testVariant (value , v -> {
398398 checkType (v , VariantUtil .PRIMITIVE , VariantUtil .Type .TIMESTAMP );
399399 Assert .assertEquals (
400- Instant .parse ("2025-04-17T08:09:10.123456+00:00" ),
401- Instant .EPOCH .plus (v .getLong (), ChronoUnit .MICROS ));
400+ Instant .parse ("2025-04-17T08:09:10.123456Z" ), Instant .EPOCH .plus (v .getLong (), ChronoUnit .MICROS ));
402401 });
403402 }
404403
@@ -420,8 +419,7 @@ public void testNegativeTimestamp() {
420419 testVariant (value , v -> {
421420 checkType (v , VariantUtil .PRIMITIVE , VariantUtil .Type .TIMESTAMP );
422421 Assert .assertEquals (
423- Instant .parse ("1969-12-31T23:59:59.999999+00:00" ),
424- Instant .EPOCH .plus (v .getLong (), ChronoUnit .MICROS ));
422+ Instant .parse ("1969-12-31T23:59:59.999999Z" ), Instant .EPOCH .plus (v .getLong (), ChronoUnit .MICROS ));
425423 });
426424 }
427425
@@ -435,8 +433,7 @@ public void testTimestampNtz() {
435433 testVariant (value , v -> {
436434 checkType (v , VariantUtil .PRIMITIVE , VariantUtil .Type .TIMESTAMP_NTZ );
437435 Assert .assertEquals (
438- Instant .parse ("2025-04-17T08:09:10.123456+00:00" ),
439- Instant .EPOCH .plus (v .getLong (), ChronoUnit .MICROS ));
436+ Instant .parse ("2025-04-17T08:09:10.123456Z" ), Instant .EPOCH .plus (v .getLong (), ChronoUnit .MICROS ));
440437 });
441438 }
442439
@@ -458,8 +455,7 @@ public void testNegativeTimestampNtz() {
458455 testVariant (value , v -> {
459456 checkType (v , VariantUtil .PRIMITIVE , VariantUtil .Type .TIMESTAMP_NTZ );
460457 Assert .assertEquals (
461- Instant .parse ("1969-12-31T23:59:59.999999+00:00" ),
462- Instant .EPOCH .plus (v .getLong (), ChronoUnit .MICROS ));
458+ Instant .parse ("1969-12-31T23:59:59.999999Z" ), Instant .EPOCH .plus (v .getLong (), ChronoUnit .MICROS ));
463459 });
464460 }
465461
@@ -527,8 +523,7 @@ public void testTimestampNanos() {
527523 testVariant (value , v -> {
528524 checkType (v , VariantUtil .PRIMITIVE , VariantUtil .Type .TIMESTAMP_NANOS );
529525 Assert .assertEquals (
530- Instant .parse ("2025-04-17T08:09:10.123456789+00:00" ),
531- Instant .EPOCH .plus (v .getLong (), ChronoUnit .NANOS ));
526+ Instant .parse ("2025-04-17T08:09:10.123456789Z" ), Instant .EPOCH .plus (v .getLong (), ChronoUnit .NANOS ));
532527 });
533528 }
534529
@@ -550,8 +545,7 @@ public void testNegativeTimestampNanos() {
550545 testVariant (value , v -> {
551546 checkType (v , VariantUtil .PRIMITIVE , VariantUtil .Type .TIMESTAMP_NANOS );
552547 Assert .assertEquals (
553- Instant .parse ("1969-12-31T23:59:59.999999999+00:00" ),
554- Instant .EPOCH .plus (v .getLong (), ChronoUnit .NANOS ));
548+ Instant .parse ("1969-12-31T23:59:59.999999999Z" ), Instant .EPOCH .plus (v .getLong (), ChronoUnit .NANOS ));
555549 });
556550 }
557551
@@ -565,8 +559,7 @@ public void testTimestampNanosNtz() {
565559 testVariant (value , v -> {
566560 checkType (v , VariantUtil .PRIMITIVE , VariantUtil .Type .TIMESTAMP_NANOS_NTZ );
567561 Assert .assertEquals (
568- Instant .parse ("2025-04-17T08:09:10.123456789+00:00" ),
569- Instant .EPOCH .plus (v .getLong (), ChronoUnit .NANOS ));
562+ Instant .parse ("2025-04-17T08:09:10.123456789Z" ), Instant .EPOCH .plus (v .getLong (), ChronoUnit .NANOS ));
570563 });
571564 }
572565
@@ -588,8 +581,7 @@ public void testNegativeTimestampNanosNtz() {
588581 testVariant (value , v -> {
589582 checkType (v , VariantUtil .PRIMITIVE , VariantUtil .Type .TIMESTAMP_NANOS_NTZ );
590583 Assert .assertEquals (
591- Instant .parse ("1969-12-31T23:59:59.999999999+00:00" ),
592- Instant .EPOCH .plus (v .getLong (), ChronoUnit .NANOS ));
584+ Instant .parse ("1969-12-31T23:59:59.999999999Z" ), Instant .EPOCH .plus (v .getLong (), ChronoUnit .NANOS ));
593585 });
594586 }
595587
0 commit comments