使用正确的 ZoneId。
parent
05ce281128
commit
2c459692b6
|
@ -37,7 +37,7 @@ class DateTimeUtilTests {
|
|||
|
||||
@Test
|
||||
void testToJodaDateTime() {
|
||||
DateTime jodaDateTime = DateTimeUtil.toJodaDateTime(Instant.now(), ZoneId.of("null"));
|
||||
DateTime jodaDateTime = DateTimeUtil.toJodaDateTime(Instant.now(), ZoneId.of("+08:00"));
|
||||
log.info("jodaDateTime: {}", jodaDateTime);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue