From 7cbcef2772748b1e40c06923aaf798accb60c88c Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 5 Mar 2026 21:33:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E6=97=B6=E9=97=B4=E5=A4=84?= =?UTF-8?q?=E7=90=86=E4=B8=BA=E7=BB=9F=E4=B8=80=E6=B2=99=E7=89=B9=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/command/room/RoomMemberChangeIdentityCmdExe.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/RoomMemberChangeIdentityCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/RoomMemberChangeIdentityCmdExe.java index 470ce704..be8843b5 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/RoomMemberChangeIdentityCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/RoomMemberChangeIdentityCmdExe.java @@ -37,6 +37,8 @@ import com.red.circle.wallet.inner.model.cmd.GoldReceiptCmd; import com.red.circle.wallet.inner.model.enums.GoldOrigin; import java.math.BigDecimal; import java.math.RoundingMode; +import java.time.LocalDate; +import java.time.ZoneId; import java.util.Objects; import java.util.concurrent.TimeUnit; @@ -236,8 +238,11 @@ public class RoomMemberChangeIdentityCmdExe { if (Objects.isNull(roomMember)) { return; } - String createDate = roomMember.getCreateTime().toLocalDateTime().toLocalDate().toString(); - String todayDate = ZonedDateTimeAsiaRiyadhUtils.now().toLocalDate().toString(); + LocalDate createDate = roomMember.getCreateTime().toLocalDateTime() + .atZone(java.time.ZoneOffset.UTC) + .withZoneSameInstant(ZoneId.of("Asia/Riyadh")) + .toLocalDate(); + LocalDate todayDate = ZonedDateTimeAsiaRiyadhUtils.now().toLocalDate(); if (!createDate.equals(todayDate)) { return; }