fix 月份从0开始
This commit is contained in:
@@ -270,7 +270,7 @@ public class TaskUtils {
|
||||
String mixNum = String.format("%02d", vd.getIntValue("mix_num"));
|
||||
|
||||
// 日期3位,第1位表示月,超过1位的'0'表示10月,'N'表示11月,'D'表示12月,后2位表示日,对于少于2位的日 String 简单格式化即可。
|
||||
String date = month[DateUtil.thisMonth() - 1] + String.format("%02d", DateUtil.thisDayOfMonth());
|
||||
String date = month[DateUtil.thisMonth()] + String.format("%02d", DateUtil.thisDayOfMonth());
|
||||
|
||||
// 拼接字符串返回。
|
||||
return partUsed + brickType + yjCode + hljCode + mixNum + date;
|
||||
|
||||
Reference in New Issue
Block a user