Skip to content

Commit 6b101b2

Browse files
committed
Update ZonedDateTimeSerTest.java
1 parent b61515e commit 6b101b2

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

datetime/src/test/java/com/fasterxml/jackson/datatype/jsr310/ser/ZonedDateTimeSerTest.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -972,20 +972,6 @@ public void testShapeInt() throws JsonProcessingException {
972972
assertEquals("{\"t1\":1651053600000,\"t2\":1651053600.000000000}", json1);
973973
}
974974

975-
// [dataformat-joda#92] DateTime serialization result is not same as Java 8 ZonedDateTime
976-
@Test
977-
public void testSerializationWithZone() throws Exception
978-
{
979-
ZonedDateTime java8ZonedDateTime = ZonedDateTime.of(2023, 10, 1, 12, 0, 0, 0,
980-
ZoneId.of("Asia/Shanghai"));
981-
982-
String actual = MAPPER.writer()
983-
.without(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
984-
.writeValueAsString(java8ZonedDateTime);
985-
986-
assertEquals("\"2023-10-01T12:00:00+08:00\"", actual);
987-
}
988-
989975
// [dataformat-joda#92] DateTime serialization result is not same as Java 8 ZonedDateTime
990976
@Test
991977
public void testSerializationWithZoneWithDefaultTimeZone() throws Exception

0 commit comments

Comments
 (0)