From 3f91672bd15a8dd69e8480ceefcf9e20f86fc3bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?old=E6=98=93?= <156663459@qq.com> Date: Fri, 13 Dec 2024 15:57:43 +0800 Subject: [PATCH] bug fixed --- .../Controllers/Front/SeVolunteerInitializationController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 => {