diff --git a/New_College.Api/Controllers/Front/SeVolunteerInitializationController.cs b/New_College.Api/Controllers/Front/SeVolunteerInitializationController.cs index de47d07..c0ac147 100644 --- a/New_College.Api/Controllers/Front/SeVolunteerInitializationController.cs +++ b/New_College.Api/Controllers/Front/SeVolunteerInitializationController.cs @@ -54,8 +54,8 @@ namespace New_College.Api.Controllers }).ToList(); DateTime dt = DateTime.Now; - DateTime fixedDate = new DateTime(dt.Year, 9, 1); // 创建当前年份的9月10日 - int nowyear = dt > fixedDate ? dt.Year + 1 : dt.Year; // 比较当前日期与固定日期 + DateTime fixedDate = new DateTime(dt.Year, 6, 10); // 创建当前年份的9月10日 + int nowyear = dt > fixedDate ? dt.Year : dt.Year-1; // 比较当前日期与固定日期 sevolunterlist.ForEach(a => {