From 2c459692b6ef83e21dc68a40e079ff963a790106 Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Sun, 4 Jun 2023 04:10:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=AD=A3=E7=A1=AE=E7=9A=84?= =?UTF-8?q?=20ZoneId=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/xyz/zhouxy/plusone/commons/util/DateTimeUtilTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/xyz/zhouxy/plusone/commons/util/DateTimeUtilTests.java b/src/test/java/xyz/zhouxy/plusone/commons/util/DateTimeUtilTests.java index b421f33..ef7bf7f 100644 --- a/src/test/java/xyz/zhouxy/plusone/commons/util/DateTimeUtilTests.java +++ b/src/test/java/xyz/zhouxy/plusone/commons/util/DateTimeUtilTests.java @@ -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); }