From be01b026ec888646537d2c7403e0c2ebdddd022d Mon Sep 17 00:00:00 2001 From: lcy <1459594991@qq.com> Date: 星期三, 14 五月 2025 11:10:53 +0800 Subject: [PATCH] 10366 【越南】【英语】【BT】【砍树】仙盟攻城战-客户端 --- System/FairySiege/FairySiegeScheduleTimeCell.cs | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/System/FairySiege/FairySiegeScheduleTimeCell.cs b/System/FairySiege/FairySiegeScheduleTimeCell.cs index 6095747..5e8fd99 100644 --- a/System/FairySiege/FairySiegeScheduleTimeCell.cs +++ b/System/FairySiege/FairySiegeScheduleTimeCell.cs @@ -45,14 +45,16 @@ OperationDate nowDate = new OperationDate(); nowDate.year = startDate.year; nowDate.month = startDate.month; - nowDate.day = startDate.day + startDay - 1; + nowDate.day = startDate.day; + nowDate.AddDays(Mathf.Max(startDay - 1, 0)); textBuilder.Append(nowDate.ToDisplay()); textBuilder.Append(string.Format(" {0}:{1}", startHour.ToString("D2"), startMinute.ToString("D2"))); textBuilder.Append(" - "); OperationDate endDate = new OperationDate(); endDate.year = startDate.year; endDate.month = startDate.month; - endDate.day = startDate.day + endDay - 1; + endDate.day = startDate.day; + endDate.AddDays(Mathf.Max(endDay - 1, 0)); textBuilder.Append(endDate.ToDisplay()); textBuilder.Append(string.Format(" {0}:{1}", endHour.ToString("D2"), endMinute.ToString("D2"))); return textBuilder.ToString(); -- Gitblit v1.8.0