bug fixed
parent
7c337f2073
commit
3f91672bd1
|
|
@ -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 =>
|
||||
{
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue