xiatian hace 4 semanas
padre
commit
566e54119d

+ 1 - 1
src/main/java/cn/com/qmth/archive/service/impl/MarkingServiceImpl.java

@@ -290,7 +290,7 @@ public class MarkingServiceImpl implements MarkingService {
                     }
                 } else if (ob instanceof LocalDateTime) {
                     LocalDateTime tem = (LocalDateTime) ob;
-                    Instant instant = tem.atZone(ZoneId.systemDefault()).toInstant();
+                    Instant instant = tem.atZone(ZoneId.of("Asia/Shanghai")).toInstant();
 
                     // 将 Instant 转换为 Date
                     Date date = Date.from(instant);