fix: 忘记把变量写进去了
This commit is contained in:
@@ -126,7 +126,7 @@ public class TaskUtils {
|
||||
// 获取当前日期和时间
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
// 定义日期时间格式
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MMddHHmm");
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern(format);
|
||||
// 格式化日期时间
|
||||
return now.format(formatter);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user