Explorar o código

formattedDateTime

姜永辉 hai 1 ano
pai
achega
7e22016e91

+ 1 - 1
src/main/java/com/dk/oauth/service/integral/IntegralShareService.java

@@ -171,7 +171,7 @@ public class IntegralShareService extends BaseService<IntegralShare> {
 		}else{
 			// 获取当前日期时间
 			LocalDateTime currentDateTime = LocalDateTime.now();			// 设置时间为23点59分
-			LocalDateTime time2359 = currentDateTime.withHour(23).withMinute(59);
+			LocalDateTime time2359 = currentDateTime.withHour(23).withMinute(59).withSecond(59);
 			// 格式化时间为指定格式
 			DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
 			String formattedDateTime = time2359.format(formatter);